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;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace B {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ... | 8 | 209 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 94], ["+", 0... | 8 | 289 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC130_1 {
class B {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var l = Console.ReadLine().Split().Select(int.Parse).ToArray();
var sum = 0;
var res = 0;
for (int i... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC130_1 {
class B {
static void Main(string[] args) {
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
var l = Console.ReadLine().Split().Select(int.Parse).ToArray();
var sum = 0;
var res = 1;
for (int i... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ... | 8 | 139 |
using System;
using System.Collections.Generic;
public class AtCoderB {
static void Main() {
int n;
int x;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
x = int.Parse(words[1]);
}
int answer = 0;
int oldD = 0;
{
var l... | using System;
using System.Collections.Generic;
public class AtCoderB {
static void Main() {
int n;
int x;
{
var line = Console.ReadLine();
var words = line.Split(' ');
n = int.Parse(words[0]);
x = int.Parse(words[1]);
}
int answer = 0;
int oldD = 0;
{
var l... | [["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 31, 22], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 17, 19], ["+", 8, 196, 0, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 196, 0, 57, 64, 196, 0, 45],... | 8 | 157 |
using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
var a = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray();
int n = a[0];
int x = a[1];
var l = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray();
int counter = 0;
... | using System;
using System.Linq;
public class Hello {
public static void Main() {
// Your code here!
var a = Console.ReadLine().Split().Select(y => int.Parse(y)).ToArray();
int n = a[0];
int x = a[1];
var l = Console.ReadLine().Split().Select(z => int.Parse(z)).ToArray();
int counter = 1;
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", ... | 8 | 149 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var X = input[1];
var L = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var sum = 0;
for (int i = 0;... | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var X = input[1];
var L = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var sum = 0;
for (int i = 0;... | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+"... | 8 | 140 |
using System;
using static System.Console;
using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TemplateAlgorithm {
class Program {
public const long Inf = (long)1e18;
public const double eps = 1e-6;
public const string alfa = "abcdefghijklmnopqrstuvwxyz";
... | using System;
using static System.Console;
using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TemplateAlgorithm {
class Program {
public const long Inf = (long)1e18;
public const double eps = 1e-6;
public const string alfa = "abcdefghijklmnopqrstuvwxyz";
... | [["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 196, 0, 45], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 2... | 8 | 537 |
using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
class Program {
static void Main(string[] arg) {
int[] tmp1 = new int[2];
int tmpnum = 0;
int count = 0;
string[] x = Regex.Split(Console.ReadLine(), @"\s+");
tmp1[0] = Convert.ToInt32(x[0]);
tmp1[1] = Conve... | using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
class Program {
static void Main(string[] arg) {
int[] tmp1 = new int[2];
int tmpnum = 0;
int count = 1;
string[] x = Regex.Split(Console.ReadLine(), @"\s+");
tmp1[0] = Convert.ToInt32(x[0]);
tmp1[1] = Conve... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 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 | 156 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] values = Console.ReadLine().Split(' ');
int n = int.Parse(values[0]);
int x = int.Parse(values[1]);
string[] stepvalues = Conso... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] values = Console.ReadLine().Split(' ');
int n = int.Parse(values[0]);
int x = int.Parse(values[1]);
string[] stepvalues = Conso... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["-", 0, 195, 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 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
var n = int.Parse(s[0]);
var x = int.Parse(s[1]);
var sls = Console.ReadLine... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine().Split(' ');
var n = int.Parse(s[0]);
var x = int.Parse(s[1]);
var sls = Console.ReadLine... | [["-", 0, 57, 64, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 64, 196, 0, 52, 0, 25], ["+", 0, 57, 64, 196, 0, 52, 8, 196, 0, 45], ["+", 64, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+"... | 8 | 250 |
using Atcoder;
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var first = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
v... | using Atcoder;
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var first = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
v... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 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, 17, 47], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["-", 0... | 8 | 199 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Paiza {
class Program {
public static void Main(string[] args) {
if (true) {
abc130_b();
} else {
arc089_a();
abc085_c();
abc083_b();
abc087_b();
ABC081A();
ABC086A();
ABC081B();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Paiza {
class Program {
public static void Main(string[] args) {
if (true) {
abc130_b();
} else {
arc089_a();
abc085_c();
abc083_b();
abc087_b();
ABC081A();
ABC086A();
ABC081B();
... | [["+", 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,117 |
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();
}
}
class Program {
public static voi... |
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();
}
}
class Program {
public static vo... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 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], ["+", 205, 213, 3, 4, 0, 2... | 8 | 145 |
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();
}
}
class Program {
public static vo... |
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();
}
}
class Program {
public static vo... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 19], ["+", 0, 52, 15, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 16, 12, 16, 31, 16, 12, 204, 205, 22], ["+", 12, 16, 31, 16, 12, 204, 206, 20... | 8 | 149 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kyopro {
class Program {
static void Main(string[] args) {
string[] nx = Console.ReadLine().Split();
int n = int.Parse(nx[0]);
int x = int.Parse(nx[1]);
string[] ln = Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace kyopro {
class Program {
static void Main(string[] args) {
string[] nx = Console.ReadLine().Split();
int n = int.Parse(nx[0]);
int x = int.Parse(nx[1]);
string[] ln = Console.... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["+", 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, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, ... | 8 | 157 |
using System;
class B_Bounding {
static void Main(string[] args) {
string[] NX = Console.ReadLine().Split(' ');
string[] Lstr = Console.ReadLine().Split(' ');
int X = int.Parse(NX[1]);
int[] L = new int[int.Parse(NX[0])];
for (int Ind = 0; Ind < int.Parse(NX[0]); Ind++) {
L[Ind] = int.Parse(... | using System;
class B_Bounding {
static void Main(string[] args) {
string[] NX = Console.ReadLine().Split(' ');
string[] Lstr = Console.ReadLine().Split(' ');
int X = int.Parse(NX[1]);
int[] L = new int[int.Parse(NX[0])];
for (int Ind = 0; Ind < int.Parse(NX[0]); Ind++) {
L[Ind] = int.Parse(... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8,... | 8 | 184 |
using System;
class Program {
static void Main(string[] args) {
string[] param1 = Console.ReadLine().Split(' '); // 1行目.
string[] paramL = Console.ReadLine().Split(' ');
int N = int.Parse(param1[0]);
int X = int.Parse(param1[1]);
int tmp = 0;
int bound = 1;
for (int i = 0; i < N; i++) {
... | using System;
class Program {
static void Main(string[] args) {
string[] param1 = Console.ReadLine().Split(' '); // 1行目.
string[] paramL = Console.ReadLine().Split(' ');
int N = int.Parse(param1[0]);
int X = int.Parse(param1[1]);
int tmp = 0;
int bound = 1;
for (int i = 0; i < N; i++) {
... | [["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 7, 8, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 7, 8, 196, ... | 8 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
int N = int.Parse(s.Split(' ')[0]);
int X = int.Parse(s.Split(' ')[1]);
string t = Console.Rea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
//入力
string s = Console.ReadLine();
int N = int.Parse(s.Split(' ')[0]);
int X = int.Parse(s.Split(' ')[1]);
string t = Console.Rea... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 222 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) { /*
var input = Console.ReadLine().Split();
int W = int.Parse(input[0]);
int H = int... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) { /*
var input = Console.ReadLine().Split();
int W = int.Parse(input[0]);
int H = int... | [["+", 0, 7, 15, 16, 12, 16, 12, 16, 17, 72], ["+", 0, 7, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, ... | 8 | 170 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
int N = cin.nextInt();
int X = cin.nextInt();
int d = 0;
for (int i = 1; i <= N;... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
public void Do() {
cin = new Scanner();
int N = cin.nextInt();
int X = cin.nextInt();
int d = 0;
for (int i = 1; i <= N;... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 8... | 8 | 536 |
using System;
using System.IO;
namespace Sandbox {
internal class Program {
private static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var x = scanner.GetNextAsInt();
var l = scanner.ToIntArrayFromNextLine();
var count = 0;
var xnow = 0;
foreac... | using System;
using System.IO;
namespace Sandbox {
internal class Program {
private static void Main(string[] args) {
var scanner = new Scanner();
var n = scanner.GetNextAsInt();
var x = scanner.GetNextAsInt();
var l = scanner.ToIntArrayFromNextLine();
var count = 0;
var xnow = 0;
foreac... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 585 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
var t = Console.ReadLine().Split(' ');
int N = int.Parse(t[0]);
int X = int.Parse(t[1]);
t = Console.ReadLine().Split(' ');
int[] L = new int[N];
for (int i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main() {
var t = Console.ReadLine().Split(' ');
int N = int.Parse(t[0]);
int X = int.Parse(t[1]);
t = Console.ReadLine().Split(' ');
int[] L = new int[N];
for (int i... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 223, 0, 22], [... | 8 | 177 |
using System;
using System.Linq;
namespace ABC130_B {
class Program {
static void Main(string[] args) {
var NX = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NX[0];
var X = NX[1];
var L = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ans = 0;
var temp = 0;
... | using System;
using System.Linq;
namespace ABC130_B {
class Program {
static void Main(string[] args) {
var NX = Console.ReadLine().Split().Select(int.Parse).ToArray();
var N = NX[0];
var X = NX[1];
var L = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ans = 0;
var temp = 0;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 144 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using static System.Console;
namespace atcorder2 {
class Program {
public static long Read() { return long.Parse(ReadLine()); }
public static long[] Reads() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
publ... | [["-", 15, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["-", 15, 16, 31, 16, 12, 16, 31, 74, 39, 199], ["-", 15, 16, 31, 16, 12, 16, 31, 74, 0, 25], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 15, 16, 12, 16, 12, 16, 31, 74, 0, 24], ["-", 15, 16, 12, 16, 12, 16, 31, 74, 39... | 8 | 325 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp14 {
class Class5 {
static void Main() {
var I = Console.ReadLine().Split().Select(int.Parse).ToArray();
double W = I[0];
double H = I[1];
double x = I[2];
doubl... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp14 {
class Class5 {
static void Main() {
var I = Console.ReadLine().Split().Select(int.Parse).ToArray();
double W = I[0];
double H = I[1];
double x = I[2];
doubl... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 12, 20... | 8 | 138 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long W = long.Parse(input[0]);
long H = long... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
decimal W = decimal.Parse(input[0]);
decimal... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 189 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long W = long.Parse(s[0]);
long H = long.Parse(s[1]);
long ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double W = double.Parse(s[0]);
double H = double.Parse(s[1]);
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 1... | 8 | 176 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
public void Solve() {
// Solve Code ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using Extensions;
using static System.Math;
using static Extensions.MathExtension;
using static Extensions.ConsoleInputExtension;
using static Extensions.ConsoleOutputExtension;
class Solver {
publ... | [["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 36, 36, 36, 3... | 8 | 1,706 |
using System;
class Ho {
static void Main() {
var b = Console.ReadLine().Split();
var W = double.Parse(b[0]);
var H = double.Parse(b[1]);
var x = double.Parse(b[2]);
var y = double.Parse(b[3]);
double saidai = W * H / 2;
double kotae = x * H;
if (2 * x == W && 2 * y == H) {
Cons... | using System;
class Ho {
static void Main() {
var b = Console.ReadLine().Split();
var W = double.Parse(b[0]);
var H = double.Parse(b[1]);
var x = double.Parse(b[2]);
var y = double.Parse(b[3]);
double kotae = W * H / 2;
if (2 * x == W && 2 * y == H) {
Console.WriteLine(kotae + " " +... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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, ... | 8 | 144 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] whxy = Console.ReadLine().Split().Select(long.Parse).ToArray();
double res = whxy[0] * whxy[1] / 2;
bool isCenter = whxy[2] * 2 == ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long[] whxy = Console.ReadLine().Split().Select(long.Parse).ToArray();
double res = ((double)whxy[0] * (double)whxy[1]) / 2;
bool isCenter... | [["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 74, 39, 199], ["+", 0, 16, 31, 23, 0, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 39, 199], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 25], ["+", ... | 8 | 124 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class AtCoderC {
private static int w;
private static int h;
private static int x;
private static int y;
static void Main() {
{
string line = Console.ReadLine();
var words = line.Split(' ');
w ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class AtCoderC {
private static double w;
private static double h;
private static double x;
private static double y;
static void Main() {
{
string line = Console.ReadLine();
var words = line.Split(' ... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 174 |
using System;
namespace MyProgram {
class AtCoder {
static void Main(string[] args) {
long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long W = input[0];
long H = input[1];
double x = (double)input[2];
double y = (double)input[3];
int method = 0;
if (input[0] / ... | using System;
namespace MyProgram {
class AtCoder {
static void Main(string[] args) {
long[] input = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long W = input[0];
long H = input[1];
double x = (double)input[2];
double y = (double)input[3];
int method = 0;
if ((double)inp... | [["+", 15, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 15, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 15, 16, 31, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 39, 199], ["+", 0, 57, 15, 16, 31, 16, 12, 74, 0, 25], ["+", 15, 16, 12, 16, 31, 16, 31, 74, 0, 2... | 8 | 146 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var p = Input();
var w = p[0].ToLong();
var h = p[1].ToLong();
var x = p[2].ToLong();
var y = p[3].ToLong... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var p = Input();
var w = p[0].ToLong();
var h = p[1].ToLong();
var x = p[2].ToLong();
var y = p[3].ToLong... | [["+", 3, 4, 0, 28, 0, 41, 15, 23, 0, 24], ["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 41, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 250], ["+", 15, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 15, 23, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 15, 23, 0, 16, 31, 16, 12, 74, 39, 199], ["... | 8 | 355 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 12, 74, 39, ... | 8 | 507 |
using System;
using System.Linq;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
var WHxy = Console.ReadLine().Split().Select(long.Parse).ToArray();
long s = WHxy[0] * WHxy[1] / 2;
bool isAbleToDivideMany = false;
if (WHxy[0] / 2 == WHxy[2] && WHxy[1] / 2 =... | using System;
using System.Linq;
using static System.Math;
namespace C {
class Program {
static void Main(string[] args) {
var WHxy = Console.ReadLine().Split().Select(double.Parse).ToArray();
double s = WHxy[0] * WHxy[1] / 2;
bool isAbleToDivideMany = false;
double q = WHxy[0] / 2;
if (WHxy[0... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, ... | 8 | 130 |
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("2 3 1 2");
// 3.000000 0
} else if (InputPatt... | 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("2 3 1 2");
// 3.000000 0
} else if (InputPatt... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 17,... | 8 | 273 |
#if true
//#if false
#define UTAKA_DEBUG
#endif
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.IO;
namespace UtakaApp {
public partial class Program {
public const string ContestName = "abc130";
public const string ProblemName = "C";
... | #if true
//#if false
#define UTAKA_DEBUG
#endif
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.IO;
namespace UtakaApp {
public partial class Program {
public const string ContestName = "abc130";
public const string ProblemName = "C";
... | [["+", 0, 200, 0, 212, 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, 212, 0, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 212, 0, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ... | 8 | 1,187 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31... | 8 | 554 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] values = Console.ReadLine().Split(' ');
double W = double.Parse(values[0]);
double H = double.Parse(values[1]);
double x = doub... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string[] values = Console.ReadLine().Split(' ');
double W = double.Parse(values[0]);
double H = double.Parse(values[1]);
double x = dou... | [["-", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["-", 31, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 31, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25]] | 8 | 168 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
var w = sc.nextInt();
var h = sc.nextInt();
var x = sc.nextInt();
var y = sc.nextInt();
int ans = 0;
if (x == w / 2 && y... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
var sc = new Scanner();
var w = sc.nextInt();
var h = sc.nextInt();
var x = sc.nextInt();
var y = sc.nextInt();
int ans = 0;
if (x * 2 == w && y... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17,... | 8 | 473 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int w = vs[0];
int h = vs[1];
int x = vs[2];
int y = vs[3];... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
public class Program {
static void Main(string[] args) {
int[] vs = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
int w = vs[0];
int h = vs[1];
int x = vs[2];
int y = vs[3];... | [["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 39, 199], ["+", 0, 16, 31, 16, 31, 23, 0, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 212, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 23, 0, 74, 0, 24], ["+", ... | 8 | 162 |
using System;
using System.Linq;
namespace abc130_c {
static class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var items = input.Split(' ');
var w = items.ParseInt(0);
var h = items.ParseInt(1);
var x = items.ParseInt(2);
var y = items.ParseInt(3);
var fa... | using System;
using System.Linq;
namespace abc130_c {
static class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
var items = input.Split(' ');
var w = items.ParseDouble(0);
var h = items.ParseDouble(1);
var x = items.ParseDouble(2);
var y = items.ParseDouble(3);... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 0, 197, 0, 198, 0, 200,... | 8 | 194 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int W = int.Parse(strs[0]);
int H = int.Parse(strs[1]);
int x = int.Parse(strs[2]);
in... | using System;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace SolutionCS {
class Program {
static void Main(string[] args) {
string[] strs = Console.ReadLine().Split(' ');
int W = int.Parse(strs[0]);
int H = int.Parse(strs[1]);
int x = int.Parse(strs[2]);
in... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17,... | 8 | 164 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
int W = int.Parse(strs[0]);
int H = int.Parse(strs[1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Q3 {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
string[] strs = line.Split(' ');
double W = double.Parse(strs[0]);
double H = double.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31,... | 8 | 180 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 12, 16, 31, 1... | 8 | 175 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16... | 8 | 184 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC130C {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long W = long.Parse(input[0]);
long H = long.Parse(input[1]);
long x =... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 39, ... | 8 | 189 |
using System;
class Program {
static void Main(string[] args) {
string[] a1 = Console.ReadLine().Split(' ');
int W = int.Parse(a1[0]);
int H = int.Parse(a1[1]);
int x = int.Parse(a1[2]);
int y = int.Parse(a1[3]);
int rtn2 = 0;
double rtn1 = W * H / 2;
if (x == W / 2 && y == H / 2) ... | using System;
class Program {
static void Main(string[] args) {
string[] a1 = Console.ReadLine().Split(' ');
double W = double.Parse(a1[0]);
double H = double.Parse(a1[1]);
double x = double.Parse(a1[2]);
double y = double.Parse(a1[3]);
int rtn2 = 0;
double rtn1 = W * H / 2;
if (x ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 11], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 31, 22,... | 8 | 144 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long W = long.Parse(s[0]);
long H = long.Parse(s[1]);
long x = long.Parse(s[2]);
long y = long.Parse(s[... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
public static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long W = long.Parse(s[0]);
long H = long.Parse(s[1]);
long x = long.Parse(s[2]);
long y = long.Parse(s[... | [["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 15, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24],... | 8 | 168 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) {
double[] WHxy = ReadLine().Split(' ').Select(double.Parse).ToArray();
double W = WHxy[0];
double H = WHxy[1];
... | using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) {
double[] WHxy = ReadLine().Split(' ').Select(double.Parse).ToArray();
double W = WHxy[0];
double H = WHxy[1];
double x = WHx... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 75, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 75, 57, 15, 16, 12, 16, 12, 16, 17, 85], ["+", 75, 57, 15, 16, 12, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 75, 5... | 8 | 259 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
double W = double.Parse(input[0]);
double H = double.Parse(input[1]);
double x = double.Parse(input[2]);
double y = double.Parse(input[3]);
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
double W = double.Parse(input[0]);
double H = double.Parse(input[1]);
double x = double.Parse(input[2]);
double y = double.Parse(input[3]);
... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 31, 203], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 31, 16, ... | 8 | 174 |
namespace ABC130.C {
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
public class Program {
public static void Main(string[] args) {
var l = ReadInputsAsInt().ToList();
var w = l[0];
var h = l[1];
var x = l[2];
var y = l[3];
... | namespace ABC130.C {
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
public class Program {
public static void Main(string[] args) {
var l = ReadInputsAsInt().ToList();
var w = l[0];
var h = l[1];
var x = l[2];
var y = l[3];
... | [["-", 8, 201, 0, 195, 8, 196, 0, 293, 0, 294], ["-", 0, 195, 8, 196, 0, 293, 0, 230, 0, 228], ["-", 0, 195, 8, 196, 0, 293, 0, 230, 39, 22], ["-", 8, 196, 0, 293, 0, 230, 3, 4, 0, 24], ["-", 8, 196, 0, 293, 0, 230, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 293, 0, 35], ["+", 8, 306, 0, 16, 31, 16, 31, 74, 0, 24],... | 8 | 246 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
long w = long.Parse(input[0]);
long h = long.Parse(input[1]);
long x = long.Parse(input[2]);
long y = l... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(' ');
long w = long.Parse(input[0]);
long h = long.Parse(input[1]);
long x = long.Parse(input[2]);
long y = l... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 31, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 16, 12, 16, 12, 16, 17,... | 8 | 151 |
using System;
using System.Linq;
namespace ECommonSubsequence {
class Program {
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var sNumbers = Console.ReadLine().Split().Select(int.Parse).ToArra... | using System;
using System.Linq;
namespace ECommonSubsequence {
class Program {
static void Main(string[] args) {
// 入力の取得
var inputs = Console.ReadLine().Split().Select(int.Parse).ToArray();
var n = inputs[0];
var m = inputs[1];
var sNumbers = Console.ReadLine().Split().Select(int.Parse).ToArra... | [["-", 8, 201, 0, 315, 8, 196, 0, 37, 0, 38], ["-", 0, 315, 8, 196, 0, 37, 0, 230, 0, 228], ["-", 0, 315, 8, 196, 0, 37, 0, 230, 39, 22], ["-", 8, 196, 0, 37, 0, 230, 3, 4, 0, 24], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32... | 8 | 409 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[,] A = new int[N, 2];
string[] S = new string[N];
for (var i = 0; i < N; i++) {
string[] str = Console.ReadLine().Split();
A[i, 0] = int.Parse(str[0]... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int[,] A = new int[N, 2];
string[] S = new string[N];
for (var i = 0; i < N; i++) {
string[] str = Console.ReadLine().Split();
A[i, 0] = int.Parse(str[0]... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22], ["+", ... | 8 | 941 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
public int[] dx = new int[] { 0, 1, 0, -1 };
public int[] dy = new int[] { 1, 0, -1, 0 };
public string ds = "URDL";
publi... | using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
public int[] dx = new int[] { 0, 1, 0, -1 };
public int[] dy = new int[] { 1, 0, -1, 0 };
public string ds = "URDL";
publi... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 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... | 8 | 1,253 |
using System;
using System.IO;
namespace Contest {
struct S {
public int X, Y;
public S(int x, int y) {
X = x;
Y = y;
}
}
class Program {
private Scanner sc;
public void Solve() {
sc = new Scanner();
int N = sc.NextInt();
int K = sc.NextInt();
Console.WriteLine(N - K);
}
static... | using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Contest {
struct S {
public int X, Y;
public S(int x, int y) {
X = x;
Y = y;
}
}
class Program {
private Scanner sc;
public void Solve() {
sc = new Scanner();
int N = sc.NextInt();
int K = sc.NextInt();
i... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["+", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, ... | 8 | 542 |
using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
public class Solver {
public void Solve() { Write(ri - ri); }
int ri {
get { return sc.Integer(); }
}
long rl {
get { return sc.Long(); }
}
double rd {
get { return sc.... | using System;
using System.Linq;
using System.Numerics;
using System.Collections.Generic;
using System.IO;
using System.Text;
public class Solver {
public void Solve() {
int n = ri, k = ri;
Write(k == 1 ? 0 : n - k);
}
int ri {
get { return sc.Integer(); }
}
long rl {
get { return sc.Long();... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 2... | 8 | 1,047 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections;
using System.Linq.Expressions;
using Pair = System.Tuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using static _20200215.Cin;
usi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections;
using System.Linq.Expressions;
using Pair = System.Tuple<long, long>;
using Graph =
System.Collections.Generic.List<System.Collections.Generic.List<long>>;
using static _20200215.Cin;
usi... | [["-", 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], ["+", 0, 1, 0, 223, 0, 204, 205, 204, 205, 22], ["+", 0, 223, 0, 204, 205, 204, 206, ... | 8 | 2,266 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Modular {
private const int M = 1000003;
private long value;
public Modular(long value) { this.value = value; }
public static implicit operator Modular(long a) {
return... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Modular {
private const int M = 1000003;
private long value;
public Modular(long value) { this.value = value; }
public static implicit operator Modular(long a) {
return... | [["-", 0, 41, 15, 23, 0, 16, 12, 16, 12, 203], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 12, 203], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 141, 22], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 45], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0,... | 8 | 700 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Threading.Tasks;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static... | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 48], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["-", 64, 196, 0... | 8 | 1,615 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using static System.Math;
class Program {
static long mod = (long)1e6 + 3;
static long[] f = new long[mod]; //階乗
static long[] invf = new long[mod]; //階乗の逆元
static void Main() {
f[0] = 1;
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using static System.Math;
class Program {
static long mod = (long)1e6 + 3;
static long[] f = new long[mod]; //階乗
static long[] invf = new long[mod]; //階乗の逆元
static void Main() {
f[0] = 1;
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 37, 0, 16, 17, 109], ["-", 8, 196, 0, 57, 64, 37, 0, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 35], ["+", 8... | 8 | 421 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
const int Mod = 1000003;
public void Run() {
var Q = ni();
var MulTable = new long[Mod + 120];
MulTable[1] = 1;
... | using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using E = System.Linq.Enumerable;
partial class Solver {
const int Mod = 1000003;
public void Run() {
var Q = ni();
var MulTable = new long[Mod + 120];
MulTable[1] = 1;
... | [["+", 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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], [... | 8 | 1,202 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Math;
using static Func;
class Z {
static void Main() => new K();
}
class K {
int F =... | [["+", 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], ["+", 8, 196, 0, 57, 64, 1, 0, 213, 63, 22], ["+", 0, 57... | 8 | 1,183 |
using System;
public class Program {
public static void Main() {
int[] ar = Array.ConvertAll(Console.ReadLine().Split(' '),
arTemp => Convert.ToInt32(arTemp));
int totalApplePieceAmount = ar[0] * 3 + ar[1];
Console.WriteLine(Math.Floor(totalApplePieceAmount / 3.0));
}
... | using System;
public class Program {
public static void Main() {
int[] ar = Array.ConvertAll(Console.ReadLine().Split(' '),
arTemp => Convert.ToInt32(arTemp));
double totalApplePieceAmount = (double)(ar[0] * 3 + ar[1]);
Console.WriteLine(Math.Floor(totalApplePieceAmount ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 2... | 8 | 77 |
using System;
namespace AtCoder {
class Class1 {
static void Main(string[] args) {
byte A, P;
string[] input = Console.ReadLine().Split(' ');
A = byte.Parse(input[0]);
P = byte.Parse(input[1]);
A = (byte)(A * 3);
P = (byte)(P + A);
Console.WriteLine(P / 2);
}
}
}
| using System;
namespace AtCoder {
class Class1 {
static void Main(string[] args) {
int A, P;
string[] input = Console.ReadLine().Split(' ');
A = int.Parse(input[0]);
P = int.Parse(input[1]);
A = A * 3;
P = P + A;
Console.WriteLine(P / 2);
}
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0, 2... | 8 | 100 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int N = int.Parse(input);
List<Sample> sampleList = new List<Sample>();
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
int N = int.Parse(input);
List<Sample> sampleList = new List<Sample>();
for (... | [["+", 3, 4, 0, 28, 0, 230, 10, 229, 0, 21], ["+", 0, 28, 0, 230, 10, 229, 0, 11, 31, 22], ["+", 0, 230, 10, 229, 0, 11, 0, 202, 0, 32], ["+", 0, 230, 10, 229, 0, 11, 12, 16, 31, 22], ["+", 0, 230, 10, 229, 0, 11, 12, 16, 17, 72], ["+", 0, 230, 10, 229, 0, 11, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205,... | 8 | 415 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC128 {
class PP : IComparable<PP> {
public string S;
public int P;
public int idx;
public PP(string s, int p, int id) {
S = s;
P = p;
idx = id;
}
public int CompareTo(PP p) {
if (S.Compa... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace ABC128 {
class PP : IComparable<PP> {
public string S;
public int P;
public int idx;
public PP(string s, int p, int id) {
S = s;
P = p;
idx = id;
}
public int CompareTo(PP p) {
if (S.Compa... | [["-", 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, 214, 205, 204, 205, 22], ["-", 0, 28, 0, 214, 205, 204, 206, 207, 0, 70], ["-", 0, 214, 205, 204, 206, 207, 0, 28, ... | 8 | 311 |
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[] nm = 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[] nm = Console.ReadLine().Split().Select(int.Parse).ToAr... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 197, 0, 198, 0, 200, 141, 22, 0, 316], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 197, 0, 198, 0, 200, 141, 22,... | 8 | 345 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var M = int.Parse(input[1]);
var s = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC128_C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
var N = int.Parse(input[0]);
var M = int.Parse(input[1]);
var s = new ... | [["+", 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 | 357 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = input[0];
int m = input[1];
int[][] s = new int [m][];
for (int i = 0; i < m; i++) {
s[i] = Console.ReadLine().Sp... | using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = input[0];
int m = input[1];
int[][] s = new int [m][];
for (int i = 0; i < m; i++) {
s[i] = Console.ReadLine().Sp... | [["+", 0, 28, 0, 16, 31, 204, 205, 204, 205, 22], ["+", 0, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 204, 206, 207, 0,... | 8 | 368 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
int[] input = Console.ReadLine()
.Split(' ')
.Select(value => int.Parse(value))
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace competitive_programming {
class Program {
static void Main(string[] args) {
var main = new Program();
main.solve();
}
void solve() {
int[] input = Console.ReadLine()
.Split(' ... | [["+", 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, 230, 0, 228], ["+", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 230, 3, 4, 0, ... | 8 | 561 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC128 {
class C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int[] k = new int[M];
int[,] s = new int[M, 10];
for (i... | using System;
namespace ABC128 {
class C {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int M = int.Parse(input[1]);
int[] k = new int[M];
int[,] s = new int[M, 20];
for (int i = 0; i < M; i++) {
input = Console.ReadLin... | [["-", 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 | 468 |
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) { C(); }
public static void C() {
Scanner cin = new Scanner();
int n = cin.Int();
int m = cin.Int();
List<... | 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) { C(); }
public static void C() {
Scanner cin = new Scanner();
int n = cin.Int();
int m = cin.Int();
List<... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 151], [... | 8 | 698 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static Scanner sc = new Scanner();
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var S = new int [M][];
var maxS = 0;
for (int i = 0; i < M; i++) {
var K = sc.ReadInt();
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static Scanner sc = new Scanner();
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var S = new int [M][];
for (int i = 0; i < M; i++) {
var K = sc.ReadInt();
S[i] = new int[K... | [["-", 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], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ... | 8 | 1,727 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var x = new long[N];
var y = new long[N];
for (int i = 0; i < N; i++) {
var xy = ReadLine().Split().Selec... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class Program {
static void Main() {
var N = int.Parse(ReadLine());
var x = new long[N];
var y = new long[N];
for (int i = 0; i < N; i++) {
var xy = ReadLine().Split().Selec... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 16, 31, 213, 63, 22], ["-", 15, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["-", 0, 57, 15, 16, 12, 16, 31, 213, 63, 22], ["... | 8 | 552 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadInt();
var x = new long[N];
var y = new long[N];
for (int i = 0; i < N; i++) {
var input = ReadArrayInt();
x[i] = input[0];
y[i] = input[... | using System;
using System.Collections.Generic;
using System.Linq;
namespace test {
class Program {
static void Main(string[] args) {
var N = ReadLong();
var x = new long[N];
var y = new long[N];
for (int i = 0; i < N; i++) {
var input = ReadArrayLong();
x[i] = input[0];
y[i] = inpu... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 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,... | 8 | 493 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
public static void Main() {
var read = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = read[0];
SortedDiction... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ABC {
public static void Main() {
var read = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = read[0];
SortedDiction... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 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, 214, 205, 204, 205, 22], ["+", 0, 11, 12, 214, 205, 204, 206, 207, 0, 70], ["+", 12, 214, 205, 204, 206, 207, 0, 28, ... | 8 | 590 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
static class Extensions {
public static int ToInt(this string s) => int.Parse(s);
public static long ToLong(this string s) => long.Parse... | [["-", 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, 79], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-... | 8 | 584 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
namespace Program {
public static class DIVERTA2019_2B {
static public void Solve() {
var N = NextInt;
var list = new List<Tuple<int, int>>();
for (int i = 0; i < N; ++i) {
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
namespace Program {
public static class DIVERTA2019_2B {
static public void Solve() {
var N = NextInt;
var list = new List<Tuple<int, int>>();
for (int i = 0; i < N; ++i) {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 3,719 |
using System;
using System.Collections.Generic;
public class S {
private const char BLANK = '.';
private const char ROCK = '#';
public static void Main() {
// diverta 2 C
// 負数を1個作り(正数最小値-正数最大値)、ひたすら正数をそこに減算していく。
// 負数は1個以外すべて最大値に対して減算する。
var N = int.Parse(Console.ReadLine());
var input = A... | using System;
using System.Collections.Generic;
public class S {
private const char BLANK = '.';
private const char ROCK = '#';
public static void Main() {
// diverta 2 C
// 負数を1個作り(正数最小値-正数最大値)、ひたすら正数をそこに減算していく。
// 負数は1個以外すべて最大値に対して減算する。
var N = long.Parse(Console.ReadLine());
var input = ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0, 19... | 8 | 430 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var numbers = Console.ReadLine().Split(' ');
var nega =
from num in numbers
where int.Parse(num)<0 orderby i... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ConsoleApp3 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
var numbers = Console.ReadLine().Split(' ');
var nega =
from num in numbers
where int.Parse(num)<0 orderby i... | [["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 110], ["+", 8, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["+", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+",... | 8 | 504 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush(... | [["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0,... | 8 | 1,829 |
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 Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | 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 Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | [["+", 75, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 241, 0, 33], ["+", 0, 1, 0, 11, 12, 16, 31, 241, 0, 22], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 204, 205, 22], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["+... | 8 | 1,129 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
class Rate {
public readonly int g;
public readonly int s;
public readonly int b;
public Rate(int[] args) {
g = args[0];
s = args[1];
b = args[2];
}
}
static long S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
class Rate {
public readonly int g;
public readonly int s;
public readonly int b;
public Rate(int[] args) {
g = args[0];
s = args[1];
b = args[2];
}
}
static long S... | [["+", 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, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 370 |
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 Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | 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 Edge = Pair<long, int>;
using System.Text;
class Program {
static void Main(string[] args) {... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 1... | 8 | 981 |
using System;
namespace ABC129A {
class Program {
static void Main(string[] args) {
int p, q, r;
string[] ss = Console.ReadLine().Split(' ');
p = int.Parse(ss[0]);
q = int.Parse(ss[1]);
r = int.Parse(ss[2]);
if (p > q && q > r)
Console.WriteLine(q + r);
else if (p > r && r > q)
... | using System;
namespace ABC129A {
class Program {
static void Main(string[] args) {
int p, q, r;
string[] ss = Console.ReadLine().Split(' ');
p = int.Parse(ss[0]);
q = int.Parse(ss[1]);
r = int.Parse(ss[2]);
if (p > q && q > r)
Console.WriteLine(q + r);
else if (p > r && r > q)
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22]... | 8 | 327 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcider {
class Program {
static void Main(string[] args) {
string[] x = Console.ReadLine().Split(' ');
int P = int.Parse(x[0]);
int Q = int.Parse(x[1]);
int R = int.Parse(x[2... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcider {
class Program {
static void Main(string[] args) {
string[] x = Console.ReadLine().Split(' ');
int P = int.Parse(x[0]);
int Q = int.Parse(x[1]);
int R = int.Parse(x[2... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 229, 0, 45], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, ... | 8 | 183 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int n = sc.intarr[0];
int[] ws = sc.intarr;
int small = ws[0];
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) { MainStream(); }
static void MainStream() {
Scan sc = new Scan();
write wr = new write();
int n = sc.intarr[0];
int[] ws = sc.intarr;
int small = ws[0];
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17,... | 8 | 317 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = Console.ReadLine().Split();
var ret = new List<int>();
for (int i = 1; i < b.Length; i++) {
int valA = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var a = int.Parse(Console.ReadLine());
var b = Console.ReadLine().Split();
var ret = new List<int>();
for (int i = 1; i < b.Length; i++) {
int valA = 0;
... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63,... | 8 | 206 |
using System;
namespace ConsoleApp1 {
class Class1 {
static void Main(string[] args) {
string N = Console.ReadLine();
int numN = int.Parse(N);
string W = Console.ReadLine();
string[] WList = W.Split(' ');
int min = 0, S1 = 0, S2 = 0, j, k;
for (int i = 1; i < numN; i++) {
for (j = 0; j... | using System;
namespace ConsoleApp1 {
class Class1 {
static void Main(string[] args) {
string N = Console.ReadLine();
int numN = int.Parse(N);
string W = Console.ReadLine();
string[] WList = W.Split(' ');
int min = 0, S1, S2, j, k;
for (int i = 1; i < numN; i++) {
S1 = 0;
S2 = 0;... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 7, 10, 11, 12, 16, 17, 72], ["-", 8, 19... | 8 | 211 |
using System;
using System.Collections.Generic;
using System.Linq;
public static partial class Program {
public static void Main() {
var n = CRL().ToInt();
var wis = CRL().ArrayInts();
var min = int.MaxValue;
for (int i = 1; i <= 100; i++) {
var s = wis.Where(x => x <= i).Sum();
var b = ... | using System;
using System.Collections.Generic;
using System.Linq;
public static partial class Program {
public static void Main() {
var n = CRL().ToInt();
var wis = CRL().ArrayInts();
var min = int.MaxValue;
for (int i = 1; i <= n; i++) {
var s = wis.Take(i).Sum();
var b = wis.Skip(i).T... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 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, ... | 8 | 916 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omam... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO.Pipes;
namespace cswork {
class Program {
public Program() {}
Scanner cin;
const int MAXIN = 1024;
bool[] used = new bool[MAXIN];
int[] perm = new int[MAXIN];
List<int[]> permList = new List<int[]>();
void Omam... | [["+", 75, 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], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 132], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35],... | 8 | 590 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
namespace AtCoder_Beginner_Contest_129 {
class Program {
static public int[] Sarray() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static public List<int> Slist() {
return Read... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
namespace AtCoder_Beginner_Contest_129 {
class Program {
static public int[] Sarray() {
return ReadLine().Split().Select(int.Parse).ToArray();
}
static public List<int> Slist() {
return Read... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 213, 63, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], [... | 8 | 321 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = input[0], m = input[1];
int[] a = new int[m], b = new int[m + 1];
for (int i = 0; i < m; i++)
a[i] = int.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = input[0], m = input[1];
if (m == 0) {
Console.WriteLine((int)ModInt.Fib(n + 1));
return;
}
int[] a =... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 406 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] nm = ReadLineIntArray();
int wk = -1;
int index = 0;
long rtn = 0;
long wk_rtn = 0;
long wk_up1 = 0;
long wk_up2 = 0;
f... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int[] nm = ReadLineIntArray();
int wk = -1;
int index = 0;
long rtn = 0;
long wk_rtn = 0;
long wk_up1 = 0;
long wk_up2 = 0;
f... | [["+", 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, 196, 0, 45], ["+", 0, 57,... | 8 | 1,163 |
using System;
public class ABC129C {
public static void Main(string[] args) {
var str = Console.ReadLine().Split();
int n = int.Parse(str[0]);
int m = int.Parse(str[1]);
int[] a = new int[m];
long[] dp = new long[n + 1];
long mod = 1000000007;
for (int i = 0; i < n + 1; i++) {
dp[i... | using System;
public class ABC129C {
public static void Main(string[] args) {
var str = Console.ReadLine().Split();
int n = int.Parse(str[0]);
int m = int.Parse(str[1]);
int[] a = new int[m];
long[] dp = new long[n + 1];
long mod = 1000000007;
for (int i = 0; i < n + 1; i++) {
dp[i... | [["+", 75, 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], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["+", 0, 11, 12, 16, 31, 204, 206, 207, 0, ... | 8 | 239 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp86 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = st[0];
int M = st[1];
int mod = 10000... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp86 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = st[0];
int M = st[1];
int mod = 10000... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ... | 8 | 404 |
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Typical_Stairs2 {
class Program {
static void Main(string[] args) {
//以下入力時の処理
string input = ReadLine();
string[] array = input.Split(' ');
var totalStep = ulo... | using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Typical_Stairs2 {
class Program {
static void Main(string[] args) {
//以下入力時の処理
string input = ReadLine();
string[] array = input.Split(' ');
var totalStep = int... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213,... | 8 | 276 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static int[] stairs;
static void Main(string[] args) {
//入力を受け取る
int[] NM =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N = NM[0];
... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static long[] stairs;
const long beki = 1000000007;
static void Main(string[] args) {
//入力を受け取る
int[] NM =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)... | [["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 251, 0, 154], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 124, 0, 198, 0, 200, 0,... | 8 | 257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.