buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication5 {
class Program {
static void Main(string[] args) {
string[] tmp = Console.ReadLine().Split(' ');
decimal N = decimal.Parse(tmp[0]);
decimal M = decimal.Parse(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication5 {
class Program {
static void Main(string[] args) {
string[] tmp = Console.ReadLine().Split(' ');
decimal N = decimal.Parse(tmp[0]);
decimal M = decimal.Parse(... | [["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 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, 22... | 8 | 209 |
using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
const long Mod = (long)(1e9 + 7);
public static void Main() {
var nm = Console.ReadLine()
.Split()
.Select(x => long.Parse(x))
.OrderBy(x => x)
.ToArray... | using System;
using System.Linq;
using System.Collections.Generic;
public class Program {
const long Mod = (long)(1e9 + 7);
public static void Main() {
var nm = Console.ReadLine()
.Split()
.Select(x => long.Parse(x))
.OrderBy(x => x)
.ToArray... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 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], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["-", 0, 2... | 8 | 183 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int nodeCount = int.Parse(Reader.ReadLine());
this.TreeNodeList = new TreeNode[nodeCount];
for (int i = 0; i < nodeCount; i++) {
TreeNode t = new TreeN... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public void Proc() {
int nodeCount = int.Parse(Reader.ReadLine());
this.TreeNodeList = new TreeNode[nodeCount];
for (int i = 0; i < nodeCount; i++) {
TreeNode t = new TreeN... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 24], ["+", 0, 235, 8, 201, 0, 195, 54, 55, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 8, 196, ... | 8 | 912 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ForYellow {
class ARC076_E {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ForYellow {
class ARC076_E {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["-", 15, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["+", 15, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["-", 15, 16, 12, 23, 0, 16, 12, 16, 12, 22], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 12, 22], ["-", 64, 196, 0, 57, 75, 57, 15, 16, 12, 2... | 8 | 741 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int n = cin.Int();
var counts = new Dictio... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
var cin = new Scanner2();
int n = cin.Int();
var counts = new Dictio... | [["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 204, 205, 22], ["+", 31, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 23, 0, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 12, 16, 31, 23, ... | 8 | 775 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Program {
static void Main() { new Magatro().Solve(); }
}
class Magatro {
private int N;
private int[] a;
private vo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
class Program {
static void Main() { new Magatro().Solve(); }
}
class Magatro {
private int N;
private int[] a;
private vo... | [["-", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["-", 0, 57, 75, 57, 64, 196, 0, 57, 0, 24], ["+", 75, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 12, 22]... | 8 | 281 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
class P {
static void Main() {
... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
class P {
static void Main() {
... | [["-", 15, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 214, 205, 204, 205, 22], ["+", 31, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 12, 23, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 12, 23, 0, 16, 31... | 8 | 325 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace AtCoder.AGC016 {
class ColorfulHat {
public static void Main() {
var yes = "Yes";
var no = "No";
var n = int.Parse(ReadLine());
var tes... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace AtCoder.AGC016 {
class ColorfulHat {
public static void Main() {
var yes = "Yes";
var no = "No";
var n = int.Parse(ReadLine());
var tes... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 16, 31, 214, 205, 22], ["+", 75, 57, 15, 16, 31, 16, 31, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 31, 16,... | 8 | 328 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Codeforces {
internal class Template {
private void Solve() {
var n = cin.NextInt();
var a = new int[n];
for (var i = 0; i < n; i++) {
a[i] = cin.NextInt();
}
var groups... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Codeforces {
internal class Template {
private void Solve() {
var n = cin.NextInt();
var a = new int[n];
for (var i = 0; i < n; i++) {
a[i] = cin.NextInt();
}
var groups... | [["-", 15, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["+", 15, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 23, 0, 16, 12, 204, 205, 22], ["+", 12, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206,... | 8 | 519 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
using System.Threading.Tasks;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
S... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 12, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 12, 23, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 12, 23, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0,... | 8 | 1,184 |
using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
string r = cin.Next();
string g = cin.Next();
string b = cin.Next();
r += g + b;
int sum = int.Parse(r);
if (sum % 4 == 0) {
Console.WriteLine("Yes");
} else {
... | using System;
namespace ChokudaiScanner {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
string r = cin.Next();
string g = cin.Next();
string b = cin.Next();
int sum = int.Parse(r + g + b);
if (sum % 4 == 0) {
Console.WriteLine("YES");
} else {
Console.... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 3, 4, ... | 8 | 500 |
using System;
class Problem {
public static void Main() {
var s = Console.ReadLine();
if (int.Parse(string.Join(" ", s)) % 4 == 0)
Console.WriteLine("YES");
else
Console.WriteLine("NO");
}
}
| using System;
public class Problem_A {
public static void Main() {
var s = Console.ReadLine();
if (int.Parse(s.Replace(" ", "")) % 4 == 0)
Console.WriteLine("YES");
else
Console.WriteLine("NO");
}
} | [["+", 36, 36, 0, 208, 0, 235, 0, 251, 0, 259], ["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 1... | 8 | 65 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void Solve(ConsoleInput cin) {
var r = cin... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
public void Solve(ConsoleInput cin) {
var r = cin... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 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, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205,... | 8 | 473 |
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = ReadLine().Split();
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
List<List<string>> a = new List<List<string>>();
List<str... | using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = ReadLine().Split();
int h = int.Parse(input[0]);
int w = int.Parse(input[1]);
List<List<string>> a = new List<List<string>>();
List<str... | [["+", 205, 213, 63, 214, 205, 213, 63, 214, 205, 199], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 21], ["+", 205, 213, ... | 8 | 276 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.Globalization;
namespace test {
class Program {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.Globalization;
namespace test {
class Program {
static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray()... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296], ["+", 0, 213, 3, 4, 0, 28, 0, 283, 0, 296]] | 8 | 254 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
using System.Diagnostics;
class Myon {
public Myon() {}
public static int Main() {
new Myon().calc();
return 0;
}
Scanner cin;
void calc() {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 507 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Console_Cs_Test {
class Program {
public static void Main(string[] args) {
string[] line1 = Console.ReadLine().Trim().Split(' ');
int H = int.Parse(line1[0]);
int W = int.Parse(li... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Console_Cs_Test {
class Program {
public static void Main(string[] args) {
string[] line1 = Console.ReadLine().Trim().Split(' ');
int H = int.Parse(line1[0]);
int W = int.Parse(li... | [["-", 0, 195, 8, 196, 0, 42, 0, 5, 0, 222], ["+", 0, 195, 8, 196, 0, 42, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8... | 8 | 247 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main() {
var HW = Console.ReadLine().Split().Select(int.Parse);
int H = HW.First(), W = HW.Last();
for (int i = 0; i < W + 2; i++) {
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contest {
class Program {
static void Main() {
var HW = Console.ReadLine().Split().Select(int.Parse);
int H = HW.First(), W = HW.Last();
for (int i = 0; i < W + 2; i++) {
Co... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 177 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// var s = Console.ReadLine();
// var n = int.Parse(Console.ReadLine());
int[] hw = Console.ReadLine().Split().Select(int.Parse).ToAr... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
class Program {
static void Main(string[] args) {
// 入力
// long s = Console.ReadLine();
// long n = long.Parse(Console.ReadLine());
long[] hw = Console.ReadLine().Split().Select(long.Parse)... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212,... | 8 | 507 |
using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
long[] hw = Console.ReadLine().Split().Select(long.Parse).ToArray();
long res;
if ((hw[1] % 3) * (hw[0] % 3) == 0) {
res = 0;
} else {
long[] a = { hw[0] / 3 * hw[1], (hw[0] - hw[0] / 3) * (h... | using System;
using System.Linq;
using System.Collections.Generic;
class P {
static void Main() {
long[] hw = Console.ReadLine().Split().Select(long.Parse).ToArray();
long res;
if ((hw[1] % 3) * (hw[0] % 3) == 0) {
res = 0;
} else {
long[] a = { hw[0] / 3 * hw[1], (hw[0] - hw[0] / 3) * (h... | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 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, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 63, 21... | 8 | 462 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C062 {
static long CalcMin(int h, int w) {
long min = long.MaxValue;
for (int i = 1; i < w; i++) {
long S1 = (long)i * h;
int cut = h / 2;
long S2 = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C062 {
static long CalcMin(int h, int w) {
long min = long.MaxValue;
for (int i = 1; i < w; i++) {
long S1 = (long)i * h;
int cut = h / 2;
long S2 = ... | [["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28,... | 8 | 282 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using static System.Console;
using static System.Math;
clas... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using static System.Console;
using static System.Math;
class Simple {
private int H, W;
private string[] a;
void Solve() {
// input
H = io.Int;
W = io.Int;
/... | [["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 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], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141... | 8 | 612 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0
long H, W;
void Solve() {
io.i(out H, out W);
long ans = long.MaxValue;
if (H % 3 == 0 || W % 3 =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
// C#7.0
long H, W;
void Solve() {
io.i(out H, out W);
long ans = long.MaxValue;
if (H % 3 == 0 || W % 3 =... | [["+", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", ... | 8 | 2,071 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderBeginnerContest {
public class Program {
static long H;
static long W;
static long s;
public static void Main(string[] args) {
var HW = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (HW[0] > H... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderBeginnerContest {
public class Program {
static long H;
static long W;
static long s;
public static void Main(string[] args) {
var HW = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray();
if (HW[0] > H... | [["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25], ["-", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["-", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["-", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25], ["... | 8 | 651 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class Program {
public static decimal ans = decimal.MaxValue;
public static void Main() {
Reader reader = new Reader(Console.In);
int H = reader.RInt();
int W = reader.Int();
if (W > H) {
int temp = H... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
public class Program {
public static long ans = long.MaxValue;
public static void Main() {
Reader reader = new Reader(Console.In);
long H = reader.RLong();
long W = reader.Long();
if (W > H) {
long temp = H;... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 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,... | 8 | 621 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long H, W, ans = long.MaxValue, sa = 0, sb = 0, sc = 0;
string[] s = Console.ReadLine().Split(' ');
H = int.Parse(s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
long H, W, ans = long.MaxValue, sa = 0, sb = 0, sc = 0;
string[] s = Console.ReadLine().Split(' ');
H = int.Parse(s... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0... | 8 | 411 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc62 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
int ans = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc62 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int H = int.Parse(str[0]);
int W = int.Parse(str[1]);
int ans = 0;
... | [["+", 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], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 358 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.D_Challenge {
class ABC_062 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
long[] array = ReadLongs();
var hea... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.D_Challenge {
class ABC_062 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
long[] array = ReadLongs();
var hea... | [["+", 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 | 764 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.D_Challenge {
class ABC_062 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
long[] array = ReadLongs();
var hea... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTest.D_Challenge {
class ABC_062 {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int n = ReadInt();
long[] array = ReadLongs();
var hea... | [["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 0... | 8 | 787 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long min = (long)1e18;
for (int t = 0; t < 2; t++) {
for (long x =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long min = (long)1e18;
for (int t = 0; t < 2; t++) {
for (long x =... | [["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 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, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["+", 8,... | 8 | 518 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption... | [["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 48], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 151], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 48], ["-", 12, 204, 206, 207, 0, 28, 0,... | 8 | 797 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOption... | [["-", 64, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 64, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 235, 8, 201, 0, 195, 0, 318, 0, 70], ["+", 8, 201, 0, 195, 0, 318, 0, 319, 141, 22], ["+", 0, 195, 0, 318, 0, 319, 0, 320, 0, 24], ["+", 0, 319, 0, 320, 0, 321, 0, 214, 205, 22], ["+", 0, 319, 0, 320, 0, 321, 0, 214, 0... | 8 | 791 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC061A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC061A {
class Program {
static void Main(string[] args) {
int a, b, c;
var word = Console.ReadLine().Split(' ');
a = int.Parse(word[0]);
b = int.Parse(word[1]);
c = int... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+",... | 8 | 140 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC061A {
class Program {
static void Main(string[] args) {
var word = Console.ReadLine().Split(' ');
int A = int.Parse(word[0]);
int B = int.Parse(word[1]);
int C = int.Pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC061A {
class Program {
static void Main(string[] args) {
int A, B, C;
var word = Console.ReadLine().Split(' ');
A = int.Parse(word[0]);
B = int.Parse(word[1]);
C = in... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 57, 15, 16, 12, 23, 0, 16, 17... | 8 | 140 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
class _Class {
void _Do() {
//
var _s = _stringArray();
var R_ = int.Parse(_s[0]);
var G_ = int.Parse(_s[1]);
var B_ = int.Parse(_s[2]);
var c = R_ + 256 * G_ + 25... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
class _Class {
void _Do() {
//
var _s = _stringArray();
var R_ = int.Parse(_s[0]);
var G_ = int.Parse(_s[1]);
var B_ = int.Parse(_s[2]);
var c = B_ + 10 * G_ + 10 ... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 212, 0, 16, 31, 16, 12, 16, 31, 203], ["+", 0, 212, 0, 16, 31, 16, 12, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 16, 31, 16, 31, 203], ["+", 0, 212, 0, 16, 12, 16, 31, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 16, 31, 16, 12... | 8 | 303 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
int A, B, C;
void Solve() {
io.i(out A, out B, out C);
bool ans = A <= C && C <= B;
io.yn(ans);
}
int M... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace AtCoder {
class MainClass {
int A, B, C;
void Solve() {
io.i(out A, out B, out C);
bool ans = A <= C && C <= B;
io.yn(ans);
}
int M... | [["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["+... | 8 | 1,395 |
using System;
class Atcoder {
public static int[] cins() {
string[] ss = Console.ReadLine().Split(' ');
int[] Res = new int[ss.Length];
for (int i = 0; i < ss.Length; i++) {
Res[i] = int.Parse(ss[i]);
}
return Res;
}
public static void O(bool b) { Console.WriteLine(b ? "YES" : "NO"); }
... | using System;
using System.Collections.Generic;
using System.Linq;
class Atcoder {
public static int[] cins() {
string[] ss = Console.ReadLine().Split(' ');
int[] Res = new int[ss.Length];
for (int i = 0; i < ss.Length; i++) {
Res[i] = int.Parse(ss[i]);
}
return Res;
}
public static voi... | [["+", 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 | 153 |
// Rextester.Program.Main is the entry point for your code. Don't change it.
// Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester {
public class Program {
public static vo... | // Rextester.Program.Main is the entry point for your code. Don't change it.
// Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester {
public 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], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0... | 8 | 158 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class _062A {
static void Main() {
var arr = Console.ReadLine().Split().Select(int.Parse).ToArray();
var toshi = arr[0];
var miti = arr[1];
int[] ans = new int[toshi];
int[] point = new int[1];
for (var i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class _062A {
static void Main() {
var arr = Console.ReadLine().Split().Select(int.Parse).ToArray();
var toshi = arr[0];
var miti = arr[1];
int[] ans = new int[toshi];
int[] point = new int[1];
for (var i ... | [["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["+", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210,... | 8 | 161 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string input = Console.ReadLine();
int city_count = int.Parse(input.Split(' ')[0]);
List<int> citys = new List<int>();
for (int i = 0; i < city_count; i++) {
input = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
string input = Console.ReadLine();
int city_count = int.Parse(input.Split(' ')[0]);
int road_count = int.Parse(input.Split(' ')[1]);
List<int> citys = new List<int>();
for (int i = 0; i < ro... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 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, ... | 8 | 173 |
using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] str0 = Console.ReadLine().Split(' ');
int N = int.Parse(str0[0]);
int M = int.Parse(str0[1]);
int[] arrA = new int[50];
int[] arrB = new int[50];
int[] arrReault = new int[N];
int cou... | using System;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] str0 = Console.ReadLine().Split(' ');
int N = int.Parse(str0[0]);
int M = int.Parse(str0[1]);
int[] arrA = new int[M];
int[] arrB = new int[M];
int[] arrReault = new int[N];
for (int ... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 52, ... | 8 | 254 |
using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
static void Main() {
var NK = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = NK[0], K = NK[1];
var ab = new int [N][];
for (int i = 0; i < N; i++) {
ab[i] = Console.ReadLine().Split().Select(in... | using System;
using System.Collections.Generic;
using System.Linq;
class MainClass {
static void Main() {
var NK = Console.ReadLine().Split().Select(long.Parse).ToArray();
int N = (int)NK[0];
long K = NK[1];
var ab = new long [N][];
for (int i = 0; i < N; i++) {
ab[i] = Console.ReadLine().S... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 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, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0,... | 8 | 208 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
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 C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 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], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, ... | 8 | 290 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class ProblemA {
static bool SAIKI = false;
st... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static System.Math;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Runtime.CompilerServices;
using Library;
namespace Program {
public static class ProblemA {
static bool SAIKI = false;
st... | [["+", 8, 196, 0, 210, 12, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 210, 12, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 210, 12, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 12, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 0,... | 8 | 1,477 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = input[0];
... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
class Solve {
const int mod = 1000000007;
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
int N = (int)inpu... | [["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 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, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, ... | 8 | 248 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var K = sc.ReadLong();
var counts = new int[(int)1e5 + 1];
var array = new int[N];
for (int i = 0; i < N; i++) {
var a = sc.ReadInt();
var b = sc.... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var K = sc.ReadLong();
var counts = new long[(int)1e5 + 1];
for (int i = 0; i < N; i++) {
var a = sc.ReadInt();
var b = sc.ReadInt();
counts[a] ... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 73], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, ... | 8 | 902 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int N = int.Parse(input[0]);
int K = int.Parse(input[1]);
Dictionary<int, int> num = new Dictionary<int, int>();
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long N = long.Parse(input[0]);
long K = long.Parse(input[1]);
Dictionary<long, long> num = new Dictionary<long, long... | [["-", 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, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 3... | 8 | 248 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
int[] input = new int[2];
input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int n = input[0];
long k = input[1];
int[] a = new int[n];
int[] b = new int[n];
for (int i = 0; i ... | using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
long[] input = new long[2];
input = Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
long n = input[0];
long k = input[1];
long[] a = new long[n];
long[] b = new long[n];
for (long ... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 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, 19... | 8 | 213 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp107 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = st[0];
int K = st[1];
var a = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp107 {
class Program {
static void Main(string[] args) {
var st = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = st[0];
long K = st[1];
var a = n... | [["-", 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], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 226 |
using System;
using System.Collections.Generic;
namespace MyProgram {
class AtCoder {
static void Main() {
int[] input0 = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int N = input0[0];
int K = input0[1];
int[] a = new int[N];
int[] b = new int[N];
for (var i = 0; i < N; i++) {... | using System;
using System.Collections.Generic;
namespace MyProgram {
class AtCoder {
static void Main() {
long[] input0 = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long N = input0[0];
long K = input0[1];
long[] a = new long[N];
long[] b = new long[N];
for (var i = 0; i < N... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39,... | 8 | 302 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc061_c {
class Program {
static void Main(string[] args) {
var NK = GetIntList();
var N = NK[0];
var K = NK[1];
var abd = new SortedDictionary<int, int>();
for (int i = 0; i < N; i++) {
var ab = GetIntList();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc061_c {
class Program {
static void Main(string[] args) {
var NK = GetLongList();
var N = NK[0];
var K = NK[1];
var abd = new SortedDictionary<long, long>();
for (int ... | [["+", 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 | 439 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
class ValuePair {
public long Value { get; set; }
public long Size { get; set; }
}
public static void Main(string[] args) {
var p = Input().ToInt();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
class ValuePair {
public long Value { get; set; }
public long Size { get; set; }
}
public static void Main(string[] args) {
var p = Input();
var n... | [["-", 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, 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... | 8 | 462 |
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().ToInt();
var n = p[0];
var k = p[1];
var ary = new long[100000 + 2];
for (int i = 0; i ... | 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 n = p[0].ToLong();
var k = p[1].ToLong();
var ary = new long[100000 + 2];
for (int... | [["-", 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, 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... | 8 | 398 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0], K = input[1];
var bigArray = new long[100000 + 1];
var nums = new List<long>();
for (var i... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0], K = input[1];
var bigArray = new long[100000 + 1];
var nums = new List<long>();
for (var i... | [["+", 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, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]] | 8 | 201 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0], K = input[1];
var bigArray = new long[100000 + 1];
for (var i = 0; i < N; ++i) {
var num... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = input[0], K = input[1];
var bigArray = new long[100000 + 1];
for (var i = 0; i < N; ++i) {
var num... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-",... | 8 | 187 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
int n = cin.Int();
long k = cin.Long();... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCorder {
public class Program {
static void Main(string[] args) {
Scanner cin = new Scanner();
int n = cin.Int();
long k = cin.Long();... | [["+", 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, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214,... | 8 | 565 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int K = int.Parse(str[1]);
long[] memo = new long[10... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cs {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine().Split(' ');
long N = long.Parse(str[0]);
long K = long.Parse(str[1]);
long[] memo = new lon... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0... | 8 | 211 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextInt();
var k = cin.nextInt();
var... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Numerics;
namespace AtCoderWorkspace {
public class Solver {
public void Solve() {
var cin = new Scanner();
var n = cin.nextLong();
var k = cin.nextLong();
v... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, ... | 8 | 1,892 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
using static System.Console;
using System.Text;
class Program {
static void Main(string[] args) { solve(); }
static Scanner cin;
static int N;
static long K;
static int[] a, b;
static void input() {
cin = new... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Math;
using static System.Console;
using System.Text;
class Program {
static void Main(string[] args) { solve(); }
static Scanner cin;
static int N;
static long K;
static int[] a, b;
static void input() {
cin = 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, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201... | 8 | 562 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using static MyIO;
public class Pair {
public int A { get; private set; }
public int B { get; private set; }
public Pair(int a, int b) {
A = a;
B = b;
}
}
public class C {
public static void Main() {
in... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using static MyIO;
public class Pair {
public long A { get; private set; }
public long B { get; private set; }
public Pair(long a, long b) {
A = a;
B = b;
}
}
public class C {
public static void Main() {
... | [["-", 0, 208, 0, 235, 8, 201, 0, 277, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 277, 39, 199], ["-", 8, 201, 0, 263, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 263, 54, 55, 0, 220, 39, 199], ["-", 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... | 8 | 358 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
string[] cin = Console.ReadLine().Split();
int n = int.Parse(cin[0]);
int k = int.Parse(cin[1]);
int[] basket = new int[100001];
for (int i = 0; i < n; i+... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
string[] cin = Console.ReadLine().Split();
long n = long.Parse(cin[0]);
long k = long.Parse(cin[1]);
long[] basket = new long[100001];
for (long i = 0; i ... | [["-", 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, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ... | 8 | 187 |
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys(char delimiter = ' ') {
var Keys = Console.ReadLine().Split(delimiter);
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i ... | using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text;
namespace AtCoder {
public class Program {
static int[] getKeys(char delimiter = ' ') {
var Keys = Console.ReadLine().Split(delimiter);
int N = Keys.Length;
int[] Ns = new int[N];
for (int i = 0; i ... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39... | 8 | 1,363 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C061 {
static void Main(string[] args) {
string[] s1 = Console.ReadLine().Split(' ');
int N = int.Parse(s1[0]);
int K = int.Parse(s1[1]);
SortedDictionary<int, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC_C {
class C061 {
static void Main(string[] args) {
string[] s1 = Console.ReadLine().Split(' ');
int N = int.Parse(s1[0]);
long K = long.Parse(s1[1]);
SortedDictionary<int... | [["-", 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, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 3... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
Scanner cin = new Scanner();
long N = cin.Long();
long K = cin.Long();
var dic = new Dictionary<long, long>();
for (int i = 0; i < N; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main() {
Scanner cin = new Scanner();
long N = cin.Long();
long K = cin.Long();
var dic = new Dictionary<long, long>();
for (int i = 0; i < N; i++) {
... | [["-", 15, 16, 12, 213, 63, 214, 205, 214, 0, 131], ["-", 15, 16, 12, 213, 63, 214, 205, 214, 141, 22], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 52, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 52, 15, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 204, 206, 207, 0,... | 8 | 558 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
// using static System.Linq.Enumerable;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
using stati... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
// using static System.Linq.Enumerable;
using static System.Console;
using static AtCoder.Util;
using static AtCoder.Cin;
using static System.Math;
using static AtCoder.MyMath;
using stati... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 0, 213, 63, 214, 205... | 8 | 5,539 |
using System;
using System.Collections.Generic;
class Program {
static void Main() {
int[] s = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var hs = new Dictionary<int, int>();
for (int i = 0; i < s[0]; i++) {
int[] q = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
if (h... | using System;
using System.Collections.Generic;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
var hs = new Dictionary<long, long>();
for (int i = 0; i < s[0]; i++) {
long[] q = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 39, 236... | 8 | 212 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
private const int MODULO = 1000000007;
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() ... | [["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0... | 8 | 369 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long tot = 0;
for (int i = 0; i < N; i++) {
tot += B[i];
if (... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long tot = 0;
Array.Sort(A, B);
for (int i = 0; i < N; i++) {
t... | [["+", 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, 21], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201... | 8 | 432 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int N = x[0];
int K = x[1];
// list
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
long N = x[0];
long K = x[1];
// li... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 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, 227,... | 8 | 248 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#Lover///////////////////////////////////////////////////
int N, K;
// int[] A,B;
Tu... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#Lover///////////////////////////////////////////////////
int N;
long K;
// int[] A,... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 0, 21], ["+", 8, 201, 0, 235, 8, 201, 0, 124, 0, 35], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 0, 198, 39, 224, 39, 236, 237, 238, 0, 199], ["+", 0, 198, 39, 224, 39, 236, 237, 238, 0, 199], ["-", 12, 227, 39, 224, 39, 236, 237, 238, 0, 199], ["+", 12, 227, 39, 224, 3... | 8 | 6,774 |
using System.Linq;
using System;
class Program {
static void Main(string[] args) {
var input = System.Console.ReadLine().Trim().Split(' ');
var n = Int32.Parse(input[0]);
var k = Int32.Parse(input[1]);
var result = -1;
var abList = new int [n]
.Select(w => System.Console.ReadL... | using System.Linq;
using System;
class Program {
static void Main(string[] args) {
var input = System.Console.ReadLine().Trim().Split(' ');
var n = long.Parse(input[0]);
var k = long.Parse(input[1]);
long result = -1;
var abList = new int [n]
.Select(w => System.Console.ReadLi... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 2... | 8 | 191 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
// using System.Numerics;
class Program {
static void Main() {
// SetOut(new Strea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Globalization;
using System.Diagnostics;
using static System.Console;
using Pair = System.Collections.Generic.KeyValuePair<int, int>;
// using System.Numerics;
class Program {
static void Main() {
// SetOut(new Strea... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 19... | 8 | 494 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
var _ = Console.ReadLine().Split();
var n = int.Parse(_[0]);
var k = int.Parse(_[1]);
var inss = new List<Tuple<int, int>>();
for (var i = 0; i < n; i++) {
var __ = Console.ReadLine().S... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main() {
checked {
var _ = Console.ReadLine().Split();
var n = long.Parse(_[0]);
var k = long.Parse(_[1]);
var inss = new List<Tuple<long, long>>();
for (var i = 0; i < n; i++) {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["-", 8, 213, 3, 4, 0,... | 8 | 217 |
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
private static readonly Scanner sc = new Scanner();
static void Main(string[] args) {
int n = sc.Int;
int k = sc.Int;
int[] cnt = new int[100001];
for (int i = 0; i < n; i++) {
int a = sc.I... | using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
private static readonly Scanner sc = new Scanner();
static void Main(string[] args) {
long n = sc.Long;
long k = sc.Long;
long[] cnt = new long[100010];
for (int i = 0; i < n; i++) {
long a... | [["-", 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, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227,... | 8 | 253 |
using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Threading.Tasks;
/*
・概要
Bellman-Ford法は、
重み付き有向グラフにおける単一始点の最短経路問題を解くアルゴリズム。
辺の重みに負数が存在する場合に主に使う。
(cf. 辺の重みが非負数ならば、ダイクストラ法の方が高速)
・使用法
... | using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Threading.Tasks;
/*
・概要
Bellman-Ford法は、
重み付き有向グラフにおける単一始点の最短経路問題を解くアルゴリズム。
辺の重みに負数が存在する場合に主に使う。
(cf. 辺の重みが非負数ならば、ダイクストラ法の方が高速)
・使用法
... | [["+", 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, 200, 0, 212, 0, 230, 3, 4, 0, 21], ["+", 0, 212, 0, 230, 3, 4, 0, 28, 0, 22... | 8 | 625 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC061D {
class Program {
static void Main(string[] args) {
var NM = ReadLong();
long N = NM[0];
long M = NM[1];
long[] a = new long[M];
long[] b = new long[M];
long[] c = new long[M];
for (long i = 0; i < M; i+... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC061D {
class Program {
static void Main(string[] args) {
var NM = ReadLong();
long N = NM[0];
long M = NM[1];
long[] a = new long[M];
long[] b = new long[M];
long[] c = new long[M];
for (long i = 0; i < M; i+... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["-",... | 8 | 423 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
string[] cin = Console.ReadLine().Split();
int n = int.Parse(cin[0]);
int m = int.Parse(cin[1]);
var dist =
Enumerable.Repeat(long.MaxValue, n).ToLis... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
class Program {
static void Main(string[] args) {
string[] cin = Console.ReadLine().Split();
int n = int.Parse(cin[0]);
int m = int.Parse(cin[1]);
var dist =
Enumerable.Repeat(long.MaxValue, n).ToLis... | [["+", 31, 204, 206, 207, 0, 28, 0, 204, 205, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 206, 207, 0, 28, 0, 204, 206, 207, 0, 73], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 1... | 8 | 500 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
private struct Node {
public long v;
public long c;
}
private static List<Node>[] g;
private static long[] dist;
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) { Solve(); }
private const int MOD = 1000000007;
private struct Node {
public long v;
public long c;
}
private static List<Node>[] g;
private static long[] dist;
... | [["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 12, 16, 12, 16, ... | 8 | 1,607 |
using System;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long[] h = new long[s[0] + 1];
for (int i = 1; i <= s[0]; i++) {
h[i] = long.MinValue;
}
h[1] = 0;
long[][] arr = new long[s[1]][];
for (int i = 0; i < s[1]; i++) {... | using System;
class Program {
static void Main() {
long[] s = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
long[] h = new long[s[0] + 1];
for (int i = 1; i <= s[0]; i++) {
h[i] = long.MinValue;
}
h[1] = 0;
long[][] arr = new long[s[1]][];
for (int i = 0; i < s[1]; i++) {... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35... | 8 | 314 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#Lover///////////////////////////////////////////////////
int N, M;
int[] a, b;
long... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Program {
class MainClass {
// C#Lover///////////////////////////////////////////////////
int N, M;
int[] a, b;
long... | [["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 51, 250], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, ... | 8 | 7,215 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int pointCount = inpt[0];
canReach = new bool[pointCount + 1];
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
int[] inpt =
Reader.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
int pointCount = inpt[0];
canReach = new bool[pointCount + 1];
... | [["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 214, 205, 204, 205, 22], ["+", 31, 16, 31, 214, 205, 204, 206, 207, 0, 70], ["+", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 31, 16, 31, 214, 205, 204, 206, 207, 0, 73], ["+", 12, 23, 0, 16, 31, ... | 8 | 1,255 |
using System;
namespace AtCoder {
internal static class Program {
private static void Main() {
int[] nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int res = 0;
if (nbrs[0] == nbrs[1] && nbrs[0] == nbrs[2])
if (nbrs[0] % 2 == 0)
res = -1;
else
res = 0;
el... | using System;
namespace AtCoder {
internal static class Program {
private static void Main() {
int[] nbrs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
int res = 0;
if (nbrs[0] == nbrs[1] && nbrs[0] == nbrs[2])
if (nbrs[0] % 2 == 0)
res = -1;
else
res = 0;
el... | [["-", 75, 196, 0, 52, 15, 16, 31, 16, 17, 106], ["+", 75, 196, 0, 52, 15, 16, 31, 16, 17, 98], ["-", 0, 57, 75, 196, 0, 52, 15, 16, 17, 106], ["+", 0, 57, 75, 196, 0, 52, 15, 16, 17, 98], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 7, 8, 196, 0, 46], ... | 8 | 259 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder {
class Program {
static public long[] Sarray() {
return ReadLine().Split().Select(long.Parse).ToArray();
}
static public List<long> S... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12... | 8 | 237 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Libraries.Input;
namespace Libraries {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using static Libraries.Input;
namespace Libraries {
static class Input {
private static Func<string, T[]>
Cast<T>() => _ => _.Split(' ').Select(Convert<T>()).ToArray();
private static Func<string, T> Convert<T>() {
Type t = ... | [["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 12, 16, 31, ... | 8 | 1,494 |
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServ... | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServ... | [["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 67], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 23, 0, ... | 8 | 381 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
var a = ReadLongArray();
if (a[0] == a[1] && a[1] == a[2]) {
WriteAnswer(-1);
return;
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace AtCoder {
class Practice {
static void Main() => CustomMain();
static void Solve() {
var a = ReadLongArray();
if (a[0] == a[1] && a[1] == a[2]) {
if (IsOdd(a[0]) || IsOdd(a[1]) ||... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 213, 63, 22], ["+", 15, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]... | 8 | 860 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var abc = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
if (abc[0] == abc[1] && abc[0] == abc[2]) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
class Program {
static void Main(string[] args) {
var abc = Array.ConvertAll(ReadLine().Split(' '), int.Parse);
if (abc[0] % 2 == 1 || abc[1] % 2 == 1 || abc[... | [["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 106], ["+", 31, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206... | 8 | 210 |
using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | using System;
using System.Collections.Generic;
using System.Linq;
class Scanner //標準入力
{
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Length)
return s[i++];
string st = Console.ReadLine();
whi... | [["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 12, 16, 31, ... | 8 | 456 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _014_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] abc = ReadInts();
if (abc[0] == abc[1] && abc[1] == a... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.AGC_Challenge {
class _014_A {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
int[] abc = ReadInts();
if (abc[0] % 2 == 0 && abc[0] == ab... | [["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207,... | 8 | 372 |
using System;
namespace AGC014A {
class Program {
static bool Check(long a, long b, long c) {
return a % 2 == 0 && b % 2 == 0 && c % 2 == 0;
}
static void Main() {
string[] s = Console.ReadLine().Split(' ');
long a, b, c;
a = long.Parse(s[0]);
b = long.Parse(s[1]);
c = long.Parse(s[2]);
... | using System;
namespace AGC014A {
class Program {
static bool Check(long a, long b, long c) {
return a % 2 == 0 && b % 2 == 0 && c % 2 == 0;
}
static void Main() {
string[] s = Console.ReadLine().Split(' ');
long a, b, c;
a = long.Parse(s[0]);
b = long.Parse(s[1]);
c = long.Parse(s[2]);
... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 213, 63, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0, 21], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25]] | 8 | 224 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var count = new int[N + 1];
for (int i = 0; i < N; i++) {
var a = sc.ReadInt();
var b = sc.ReadInt();
count[a]++;
count[b]++;
}
var ok... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadInt();
var M = sc.ReadInt();
var count = new int[N];
for (int i = 0; i < M; i++) {
var a = sc.ReadInt() - 1;
var b = sc.ReadInt() - 1;
count[a]++;
... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 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 | 1,098 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long Inf = (long)1e18;
long[][] min = new long [H][];
bool[][] used =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
long Inf = (long)1e18;
long[][] min = new long [H][];
bool[][] used =... | [["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 23, 0, 16, 31, 16, 12, 203], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 203]] | 8 | 1,391 |
using System;
namespace ConsoleApp24 {
class Program {
static void Main(string[] args) {
bool isShiritori = false;
string[] cin = Console.ReadLine().Split(' ');
if (cin[0][cin[0].Length] == cin[1][0] &&
cin[1][cin[1].Length] == cin[2][0]) {
isShiritori = true;
}
if (isShiritori) {
... | using System;
namespace ConsoleApp24 {
class Program {
static void Main(string[] args) {
bool isShiritori = false;
string[] cin = Console.ReadLine().Split(' ');
if (cin[0][cin[0].Length - 1] == cin[1][0] &&
cin[1][cin[1].Length - 1] == cin[2][0]) {
isShiritori = true;
}
if (isShiri... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]] | 8 | 119 |
using System;
class A {
static void Main(string[] args) {
string[] Shiri = { Console.ReadLine(), Console.ReadLine(),
Console.ReadLine() };
Console.WriteLine(Shiri[0][Shiri[0].Length - 1] == Shiri[1][0] &&
Shiri[1][Shiri[1].Length - 1] == Shiri[2][0]
... | using System;
class A {
static void Main(string[] args) {
string[] Shiri = Console.ReadLine().Split(' ');
Console.WriteLine(Shiri[0][Shiri[0].Length - 1] == Shiri[1][0] &&
Shiri[1][Shiri[1].Length - 1] == Shiri[2][0]
? "YES"
:... | [["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 45], ["-", 0, 198, 0, 200, 0, 212, 0, 229, 0, 21], ["-", 0, 212, 0, 229, 0, 213, 63, 214, 205, 22], ["-", 0, 212, 0, 229, 0, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 229, 0, 213, 3, 4, 0, 24], ["-", 0, 212, 0, 229, 0, 213, 3, 4, 0, 25], ["-", 0, 212, 0, 229, 0, 213, 63, 214, 0,... | 8 | 102 |
using System;
using System.Linq;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split();
// int input=int.Parse(Console.ReadLine());
// string a = Console.ReadLine();
Console.WriteLine(input[0][input[0].Length - 1] == input[1][0] &&
input[1][input[1].Len... | using System;
using System.Linq;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split();
// int input=int.Parse(Console.ReadLine());
// string a = Console.ReadLine();
Console.WriteLine(input[0][input[0].Length - 1] == input[1][0] &&
input[1][inpu... | [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 93 |
using System;
namespace abc60 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
string A = str[0];
string B = str[1];
string C = str[2];
if (A[A.Length - 1] == B[B.Length - 1] &&
B[B.Length - 1] == C[C.Length - 1]) {
Console.WriteLine(... | using System;
namespace abc60 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
string A = str[0];
string B = str[1];
string C = str[2];
if (A[A.Length - 1] == B[0] && B[B.Length - 1] == C[0]) {
Console.WriteLine("YES");
} else {
Con... | [["-", 206, 207, 0, 28, 0, 16, 31, 214, 205, 22], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 0, 131], ["-", 206, 207, 0, 28, 0, 16, 31, 214, 141, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 12, 16, 12, 204, 206,... | 8 | 125 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
public static string ans;
public static int n;
public static string[] a;
static void Main(string[] args) {
a = Console.ReadLine().Split();
if (a[0][a[0].Length] == a[1][0] ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
public static string ans;
public static string[] a;
static void Main(string[] args) {
a = Console.ReadLine().Split();
if (a[0][a[0].Length - 1] == a[1][0] &&
(a[1][a[... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 208, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 259], ["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 115], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, ... | 8 | 141 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using static System.Console;
using static System.Math;
namespace Atcoder {
class Program {
static void Main(string[] args) {
try {
Solve.Answer();
} catch (Exception ex) {
... | [["-", 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], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0,... | 8 | 617 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
int c = sc.NextInt();
List<int> exist = new List<int>();
while (true) {
int mod = a % ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int a = sc.NextInt();
int b = sc.NextInt();
int c = sc.NextInt();
List<int> exist = new List<int>();
int now = a;
while (true) {
... | [["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 2... | 8 | 450 |
using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
int ok = 0;
for (int i = 0; i < 105; i++) {
a += a;
if (a %... | using System;
class Program {
static void Main() {
string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int c = int.Parse(input[2]);
int ok = 0;
int aa = 0;
for (int i = 0; i < 105; i++) {
aa +=... | [["+", 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, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ... | 8 | 128 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.