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 C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int x = int.Parse(input[1]);
long[] ai =
Console.ReadLine().Split(' ').... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Threading.Tasks;
namespace C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int x = int.Parse(input[1]);
long[] ai =
Console.ReadLine().Split(' ').... | [["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 6... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
class PriorityQueue<T> {
private readonly List<T> m_list;
private readonly Func<T, T, int> m_compare;
public int Count { get; private set; }
public PriorityQueue(int capacity, Func<T, T, int> ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
static class Program {
class PriorityQueue<T> {
private readonly List<T> m_list;
private readonly Func<T, T, int> m_compare;
public int Count { get; private set; }
public PriorityQueue(int capacity, Func<T, T, int> ... | [["+", 0, 1, 0, 11, 31, 204, 205, 204, 205, 22], ["+", 0, 11, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 31, 22], ["+", 31, 204, 206, 207, 0... | 8 | 1,197 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
class Myon {
static Scanner cin;
public Myon() {}
public static int Main() {
// Console.SetOut(new Printer(Console.OpenStandardOutput()));
cin = new... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Globalization;
class Myon {
static Scanner cin;
public Myon() {}
public static int Main() {
// Console.SetOut(new Printer(Console.OpenStandardOutput()));
cin = new... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33]... | 8 | 772 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[][] nums = new long [2 * n][]; //座標と種類
long memo = 0;
long multiplyMemo = 1;
long answer = 1;
long mod = 100000... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[][] nums = new long [2 * n][]; //座標と種類
long memo = 0;
long multiplyMemo = 1;
long answer = 1;
long mod = 100000... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 432 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.Remoting.Contexts;
using System.Security.Cryptography.X509Certificates;
namespace Contest {
class Scanner {
private string[] line = ne... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.Remoting.Contexts;
using System.Security.Cryptography.X509Certificates;
namespace Contest {
class Scanner {
private string[] line = ne... | [["+", 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, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 151], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0... | 8 | 529 |
using System;
#region ModInt
/// <summary>
/// [0,<see cref="Mod"/>) までの値を取るような数
/// </summary>
public struct ModInt {
/// <summary>
/// 剰余を取る値.
/// </summary>
public const long Mod = (int)1e9 + 7;
/// <summary>
/// 実際の数値.
/// </summary>
public long num;
/// <summary>
/// 値が <paramref name="n"/>... | using System;
#region ModInt
/// <summary>
/// [0,<see cref="Mod"/>) までの値を取るような数
/// </summary>
public struct ModInt {
/// <summary>
/// 剰余を取る値.
/// </summary>
public const long Mod = (int)1e9 + 7;
/// <summary>
/// 実際の数値.
/// </summary>
public long num;
/// <summary>
/// 値が <paramref name="n"/>... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 12, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["+", 12, 16, 31, 16, 12, 213, 3, 4, 0, 21], ["+", 31, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+... | 8 | 1,122 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
var inputArray = retreiveLongArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {
... | [["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46], ["+"... | 8 | 256 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
// using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
Syst... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
// using System.Diagnostics;
using Binary = System.Func<System.Linq.Expressions.ParameterExpression,
System.Linq.Expressions.ParameterExpression,
Syst... | [["-", 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, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["-", 12, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-"... | 8 | 2,943 |
using System;
namespace cf16e {
class Program {
static void Main(string[] args) {
checked // Debug
{
string[] input = Console.ReadLine().Split();
long n = long.Parse(input[0]);
long a = long.Parse(input[1]);
long answer = n;
for (int i = 2; i <= 39; ++i) {
long x = Find... | using System;
namespace cf16e {
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split();
long n = long.Parse(input[0]);
long a = long.Parse(input[1]);
long answer = n;
for (int i = 2; i <= 39; ++i) {
long x = FindPowerNth(n, i);
if (x <= 1)
... | [["-", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["-", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 235, 8, 201, 0, 195, 8, 196, 0, 46], ["+", ... | 8 | 269 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
using System.Security.Principal;
using System.Text;
class Simple {
int H... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
using System.Security.Principal;
using System.Text;
class Simple {
int H... | [["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 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, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0,... | 8 | 513 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] a = Read.Ints();
for (int i = 0; i < a[0]; i++) {
string[] s = Read.Strs();
for (int k = 0; k < a[1]; k++) {
if (s[k] == "snuke") {
Console.WriteLine((k + '... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] a = Read.Ints();
for (int i = 0; i < a[0]; i++) {
string[] s = Read.Strs();
for (int k = 0; k < a[1]; k++) {
if (s[k] == "snuke") {
Console.WriteLine((char)... | [["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], [... | 8 | 314 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 210, 8, 196, 0, 57, 0, 24], ["-", ... | 8 | 534 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
public void Slove() {
var inputs = Console.ReadLine().Split();
int n = int.Parse(inputs[0]);
int t = int.Parse(inputs[1]);
int[] array = Console.ReadLine().Split().Select(int.Parse).ToArray();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
class Program {
public void Slove() {
var inputs = Console.ReadLine().Split();
int n = int.Parse(inputs[0]);
int t = int.Parse(inputs[1]);
int[] array = Console.ReadLine().Split().Select(int.Parse).ToArray();
... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["-", 0, 28, 0, ... | 8 | 282 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["+", 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, 211, 0, 147], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 210, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 160]... | 8 | 1,287 |
using System;
namespace ABC049C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Console.WriteLine(Inspect(input, 0) ? "YES" : "NO");
}
private static string[] targets =
new[] { "dream", "dreamer", "erase", "eraser" };
private static bool Inspect(string str, ... | using System;
namespace ABC049C {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine();
Console.WriteLine(Inspect(input, 0) ? "YES" : "NO");
}
private static string[] targets =
new[] { "dream", "dreamer", "erase", "eraser" };
private static bool Inspect(string str, ... | [["+", 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, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]] | 8 | 248 |
using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, k;
int[] a, b, v, p, ans;
int[] pmin, pmax;
bool yn;
bool[] vtd, odd;
List<int>[] list;
public void AtCo... | using System;
using System.Collections.Generic;
public class CSharp {
public static void Main() {
Kyopuro chokudai = new Kyopuro();
chokudai.AtCoder();
}
}
public class Kyopuro {
int n, k;
int[] a, b, v, p, ans;
int[] pmin, pmax;
bool yn;
bool[] vtd, odd;
List<int>[] list;
public void AtCo... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 79], ["+", 75, 196, 0, 57, 15, 16, 12, 241, 0, 33]... | 8 | 1,124 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
string s = sc.Next();
string t = sc.Next();
int count = 0;
while (true) {
if (s.Substring(s.Length - count, ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
int n = sc.NextInt();
string s = sc.Next();
string t = sc.Next();
int count = n;
while (true) {
if (s.Substring(s.Length - count, ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 15, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["-", 15, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+... | 8 | 426 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
public Program() {}
Scanner cin;
long[] All;
long[] Pate;
void myon() {
cin = new Scanner();
int N = cin.nextInt();
string S = cin.next();
string T = cin.next... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
public Program() {}
Scanner cin;
long[] All;
long[] Pate;
void myon() {
cin = new Scanner();
int N = cin.nextInt();
string S = cin.next();
string T = cin.next... | [["+", 64, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 64, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 385 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class Abc_049_C {
// https://atcoder.jp/contests/abc049/tasks/arc065_a
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Cons... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class Abc_049_C {
// https://atcoder.jp/contests/abc049/tasks/arc065_a
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Cons... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 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 | 323 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
void Calc() {
var sc = new Scanner();
int N = sc.NextInt();
string C = Console.ReadLine();
string D = Console.ReadLine();
if (C == D) {
Console.WriteLine(N);
}
if (N == 1 && C != D)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
void Calc() {
var sc = new Scanner();
int N = sc.NextInt();
int a = 0;
string C = Console.ReadLine();
string D = Console.ReadLine();
if (C == D) {
Console.WriteLine(N);
}
if (N ... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 3... | 8 | 316 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush ... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1... | 8 | 1,363 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int max = 0;
for (int i = 0; i < N; i++) {
// Console.WriteLine(S.S... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int max = 0;
for (int i = N - 1; i >= 0; i--) {
// Console.WriteLin... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 2... | 8 | 376 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
public class Program {
static void Main(string[] args) {
String input = Console.ReadLine();
String temp = input;
String ans = "YES";
var mdl = new modl()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2 {
public class Program {
static void Main(string[] args) {
String input = Console.ReadLine();
String temp = input;
String ans = "YES";
var mdl = new modl()... | [["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 212, 0, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, ... | 8 | 420 |
using System;
class Program {
static void Main() {
string s = Console.ReadLine();
string ans = "YES";
int n = s.Length;
while (ans == "YES" && n > 0) {
if (n < 5) {
ans = "NO";
break;
}
if (s.Substring(n - 5, 5) == "dream" ||
s.Substring(n - 5, 5) == "erase"... | using System;
class Program {
static void Main() {
string s = Console.ReadLine();
string ans = "YES";
int n = s.Length;
while (ans == "YES" && n > 0) {
if (n < 5) {
ans = "NO";
break;
}
if (s.Substring(n - 5, 5) == "dream" ||
s.Substring(n - 5, 5) == "erase"... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 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, 1, 0, 11, 12, 213, 3, 4, 0, 25]] | 8 | 195 |
using System;
class Program {
static void Main() {
string s = Console.ReadLine();
string ans = "YES";
while (ans == "YES" && s.Length > 0) {
if (s.Length < 5) {
ans = "NO";
break;
}
if (s.Substring(s.Length - 5) == "dream" ||
s.Substring(s.Length - 5) == "erase"... | using System;
class Program {
static void Main() {
string s = Console.ReadLine();
string ans = "YES";
while (ans == "YES" && s.Length > 0) {
if (s.Length < 5) {
ans = "NO";
break;
}
if (s.Substring(s.Length - 5) == "dream" ||
s.Substring(s.Length - 5) == "erase"... | [["+", 75, 57, 15, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 20], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 15, 16, 12, 16, 31, 213, 63, 214, 0, 131], ["+", 75, 57, 15, 16, 31, 16, 31... | 8 | 203 |
using System;
using System.Text;
using System.Collections.Generic;
class Solve {
int N;
long[] x;
int M;
long K;
int[] a;
int[] original;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
int[] swap = new int[N - 1];
long[] dx ... | using System;
using System.Text;
using System.Collections.Generic;
class Solve {
int N;
long[] x;
int M;
long K;
int[] a;
int[] original;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
int[] swap;
long[] dx = new long[N - 1]... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 70], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 31, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 33], ["-", 0, 227, 39, 224, 225, 22... | 8 | 681 |
using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
// using System.Numerics;
using Number = System.Int64;
using static System.Math;
// using static MathEx;
// using P = System.Collections.Generic.KeyValuePair<int, int>;
namesp... | using System;
using System.Linq;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using SB = System.Text.StringBuilder;
// using System.Numerics;
using Number = System.Int64;
using static System.Math;
// using static MathEx;
// using P = System.Collections.Generic.KeyValuePair<int, int>;
namesp... | [["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 75, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 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, 21... | 8 | 1,886 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
class P {
static void Main() {
int[] nkl ... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
class P {
static void Main() {
int[] nkl ... | [["+", 0, 263, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 263, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 201, 0, 263, 8, 196, 0, 1, 0, 35], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, ... | 8 | 815 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
string w = Input.ScanStr();
bool c = false, f = false;
int i;
for (i = 0; i < w.Length; i++)
if (w[i] == 'C')
c = true;
for (; i < w.Length; i++)
if (w[i... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
string w = Input.ScanStr();
bool f = false;
int i;
for (i = 0; i < w.Length; i++)
if (w[i] == 'C')
break;
for (; i < w.Length; i++)
if (w[i] == 'F')
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 0, 21], ["-", 0, 7, 8, 57, 64, 1, 0, 11, 31, 22], ["-", 8, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 57, 64, 1, 0, 11, 12, 211, 0, 146], ["... | 8 | 656 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
class Program {
static int N;
static int K;
static int L;
static Dictionary<int, List<int>> dictRoad;
static Dictionary<int, List<int>> dictRail;
static Dictionary<long, L... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
class Program {
static int N;
static int K;
static int L;
static Dictionary<int, List<int>> dictRoad;
static Dictionary<int, List<int>> dictRail;
static Dictionary<long, L... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22],... | 8 | 846 |
using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Trim();
var cp = s.IndexOf('C');
var fp = s.LastIndexOf('F');
Console.WriteLine(cp < fp ? "Yes" : "No");
}
}
| using System;
public class Hello {
public static void Main() {
var s = Console.ReadLine().Trim();
var cp = s.IndexOf('C');
var fp = s.LastIndexOf('F');
Console.WriteLine(cp < fp && cp >= 0 && fp >= 0 ? "Yes" : "No");
}
}
| [["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 98], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 20], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 98], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 0, 28, 0, 41, 15, 16, 12, 16, 17, 20], ["... | 8 | 70 |
using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.Length <= 0)
Console.Write("No");
else if (input.IndexOf("C") >= input.LastIndexOf("F")) {
Console.Write("No");
} else
Console.Write("Yes");
}
}
| using System;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.IndexOf("C") < 0)
Console.Write("No");
else if (input.IndexOf("C") >= input.LastIndexOf("F")) {
Console.Write("No");
} else
Console.Write("Yes");
}
} | [["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 31, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 31, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+... | 8 | 86 |
using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | [["+", 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, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 0, 1... | 8 | 632 |
using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
string x = ReadStr();
Write("A" + x[0] + "C");
Exit();
}
public static void Write(string str) { Console.WriteLine(str); }
public static void Write(int i) { Console.WriteLine(i); }... | using System;
using System.Collections.Generic;
namespace cswork {
class Program {
static void Main(string[] args) {
List<string> s = ReadListStr();
string x = s[1];
Write("A" + x[0] + "C");
Exit();
}
public static void Write(string str) { Console.WriteLine(str); }
public static void Write(i... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212,... | 8 | 276 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
class Program {
static void Main() {
//入力
// int n = 100;
/*
long n = long.Parse(Console.ReadLine());
long[] input = new long[5];
for(int a = 0; a < 5; a++)
{
i... | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 5, 0, 62]] | 8 | 104 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
class Program {
static void Main() {
var sc = new Scanner();
string a = Console.ReadLine();
string[] b = a.Split(' ');
string c = b[1];
Console.WriteLine("A" + c + "C");
}
}
static class Ex... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
class Program {
static void Main() {
var sc = new Scanner();
string a = Console.ReadLine();
string[] b = a.Split(' ');
string c = b[1];
char d = c[0];
Console.WriteLine("A" + d + "C");
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206... | 8 | 527 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(" ");
var a = long.Parse(inputs[0]);
var b = long.Parse(inputs[1]);
var x = long.Parse(inputs[2]);
var count = (b / x) - ((a... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC {
class ProgramB {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(" ");
var a = long.Parse(inputs[0]);
var b = long.Parse(inputs[1]);
var x = long.Parse(inputs[2]);
var count = (b / x) - ((a... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22... | 8 | 115 |
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace AtCoder {
class Program {
const int BiggestMod = 1000000007;
public static void Main() {
... | using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace AtCoder {
class Program {
const int BiggestMod = 1000000007;
public static void Main() {
... | [["+", 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, 204, 205, 22], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 70], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 200, 0, 212, 0, 204, 206, 207, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, ... | 8 | 141 |
using Yorukatsu051.Questions;
using Yorukatsu051.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu051.Questions {
/// <summary>
/// https://atcoder.jp/contests/abc048/tasks/abc048_b
/// </summary>
public class QuestionD : AtCo... | using Yorukatsu051.Questions;
using Yorukatsu051.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu051.Questions {
/// <summary>
/// https://atcoder.jp/contests/abc048/tasks/abc048_b
/// </summary>
public class QuestionD : AtCo... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 504 |
using System;
namespace ABC048B {
class Program {
static void Main(string[] args) {
var target = Console.ReadLine().Split(' ');
long a = long.Parse(target[0]);
long b = long.Parse(target[1]);
long x = long.Parse(target[2]);
long a1 = a / x;
long b1 = b / x;
Console.WriteLine(b1 - a1);
}... | using System;
namespace ABC048B {
class Program {
static void Main(string[] args) {
var target = Console.ReadLine().Split(' ');
long a = long.Parse(target[0]);
long b = long.Parse(target[1]);
long x = long.Parse(target[2]);
long a1 = a / x;
long b1 = b / x;
if (a % x == 0)
b1++;
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 20... | 8 | 100 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC048B {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray();
long a = input[0];
long b = input[1];
long x = input[2];
if (a == 0) {
a = 1... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC048B {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray();
long a = input[0];
long b = input[1];
long x = input[2];
var a_count = f(a - 1, x)... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 159 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long a = sc.NextLong();
long b = sc.NextLong();
long x = sc.NextLong();
long answer = b / x - (a - 1) / x;
if (a == 0) {
answer = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
long a = sc.NextLong();
long b = sc.NextLong();
long x = sc.NextLong();
long answer = b / x - a / x;
if (a % x == 0) {
answer++;
... | [["-", 0, 212, 0, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 212, 0, 16, 12, 16, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], [... | 8 | 397 |
using System;
using System.Linq;
namespace B_Between {
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().ToLongArray();
var a = inputs[0];
var b = inputs[1];
var x = inputs[2];
var small = (a - 1) / x;
var big = b / x;
Console.WriteLine(big - small);
}
... | using System;
using System.Linq;
namespace B_Between {
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().ToLongArray();
var a = inputs[0];
var b = inputs[1];
var x = inputs[2];
var small = a == 0 ? -1 : (a - 1) / x;
var big = b / x;
Console.WriteLine(big ... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 33], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 1... | 8 | 202 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static System.Math;
// var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static System.Math;
// var input = Console.ReadLine().Split().Select(int.Parse).ToArray();
namespace AtCoderSolve {
class Solve {
const int mod = 1000000007;
co... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 234 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC048B {
class Program {
public static void Solve(Input input) {
var a = input.NextLong();
var b = input.NextLong();
var x = input.NextLong... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace ABC048B {
class Program {
public static void Solve(Input input) {
var a = input.NextLong();
var b = input.NextLong();
var x = input.NextLong... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 1,683 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var a = sc.nextLong();
var b = sc.nextLong();
var x = sc.nextLong();
WriteLine((b / x) - ((a - 1) / x));
}
}
... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var a = sc.nextLong();
var b = sc.nextLong();
var x = sc.nextLong();
if (a == 0) {
WriteLine((b / x) + 1)... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 471 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var abx = ReadSplitLong();
var a = abx[0];
var b = abx[1];
var x = abx[2];
var c = (a - 1) / x;
Pr... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) { A(); }
static void A() {
var abx = ReadSplitLong();
var a = abx[0];
var b = abx[1];
var x = abx[2];
var c = a == 0 ? -1 : (a - ... | [["+", 0, 200, 0, 212, 0, 41, 15, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 33], ["+", 0, 200, 0, 212, 0, 41, 64, 241, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 1... | 8 | 609 |
using System;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long a = long.Parse(s[0]);
long b = long.Parse(s[1]);
long x = long.Parse(s[2]);
Console.WriteLine(b / x + 1 - Math.Max((a - 1) / x + 1, 0));
}
}
| using System;
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
long a = long.Parse(s[0]);
long b = long.Parse(s[1]);
long x = long.Parse(s[2]);
Console.WriteLine(b / x + 1 - (a == 0 ? 0 : (a - 1) / x + 1));
}
}
| [["-", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 28, 0, 16, 12, 23, 0, 41, 0, 10... | 8 | 103 |
using System;
using System.Collections.Generic;
using System.Linq;
using static AtCoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
long[] x = LongLine();
long a = (x[1] % x[2] == 0 ? x[1] / x[2] + 1 : x[1]... | using System;
using System.Collections.Generic;
using System.Linq;
using static AtCoder;
using System.Threading.Tasks;
using System.ComponentModel;
public class Hello {
private const int INF = 1000000007;
public static void Main() {
long[] x = LongLine();
long a = (x[1] / x[2]) + 1;
long b = (x[0] % x[... | [["-", 0, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["-", 0, 41, 15, 16, 31, 16, 12, 204, 205, 22], ["-", 15, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 15, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 212, 0, 23, 0, 41, 15, 16, 17, 60], ["-", 0, 212, 0, 23, 0, 41, 15, 1... | 8 | 754 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Between a and b ...
var lines = ReadLines<long>(1).ToList();
long a = lines[0][0];
long b = lines[0][1];
long x = lines[0]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]B - Between a and b ...
var lines = ReadLines<long>(1).ToList();
long a = lines[0][0];
long b = lines[0][1];
long x = lines[0]... | [["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 212, 0, 16, 31, 23, 0, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22... | 8 | 389 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.OtherPractice {
class AtTemplate {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long a ... | using System;
using System.Collections.Generic;
using System.Text;
namespace AtTest.OtherPractice {
class AtTemplate {
static void Main(string[] args) {
Method(args);
Console.ReadLine();
}
static void Method(string[] args) {
string[] input = Console.ReadLine().Split(' ');
long a ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 147 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
Co... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
Co... | [["-", 0, 200, 0, 212, 0, 41, 15, 16, 17, 47], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["-", 0, 200, 0, 212, 0, 41, 64, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 41, 75, 203], ["+", 0, 212, 0, 41, 75, 16, 31, 23, 0, 24], ["+", 0, 41, 75, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 41, 75, 16, 31, 23, 0, 16, 17, 33],... | 8 | 486 |
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 {
public static void Main(string[] args) { new MainClass().solve(); }
Scanner cin = new Scanner();
long a, b, c;
void s... | 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 {
public static void Main(string[] args) { new MainClass().solve(); }
Scanner cin = new Scanner();
long a, b, c;
void s... | [["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 24], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 79], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 15, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 41, 0, 101], ["+", 0, 212, 0, 41, 64, 16, 12, 16, 17, 85], [... | 8 | 581 |
using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | using System;
using System.Text;
using System.Collections.Generic;
class Solve {
public Solve() {}
StringBuilder sb;
public static int Main() {
new Solve().Run();
return 0;
}
void Run() {
sb = new StringBuilder();
Calc();
Console.Write(sb.ToString());
}
void Calc() {
string[] str =... | [["+", 0, 16, 31, 23, 0, 41, 15, 16, 31, 22], ["+", 0, 16, 31, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 31, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 23, 0, 41, 0, 101], ["+", 0, 16, 31, 23, 0, 41, 64, 23, 0, 24], ["+", 0, 41, 64, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 41, 64, 23, 0, 16, 31, 16, 17, 85], ["+",... | 8 | 162 |
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
int[] n = IO.INT(' ');
int[] t = IO.INT(' ');
int max = t.Max();
int[] maxt = t.Where(x => x == max).ToArray();
int[... | using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
int[] n = IO.INT(' ');
int[] t = IO.INT(' ');
int max = t.Max();
int[] maxt = t.Where(x => x == max).ToArray();
int[... | [["-", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 12, 213, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 31, 16, 12, 16, 31, 213, 63, 214, 205, 22], ["+", 31, 16, 12, 16, 31, 213, 63, 21... | 8 | 931 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() {
int N = GetInt();
long[] T = Enumerable.Range(0, N).Select(_ => GetLong()).ToArray();
long[] A = Enumerable.Range(0, N).Select(_ ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using static MyIO;
public class C {
public static void Main() {
int N = GetInt();
long[] T = Enumerable.Range(0, N).Select(_ => GetLong()).ToArray();
long[] A = Enumerable.Range(0, N).Select(_ ... | [["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 64, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 14... | 8 | 447 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long[] numsSub =
Array.ConvertAll(Console.Rea... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // int.Parseは文字列を整数に変換。
long[] nums = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
long[] numsSub =
Array.ConvertAll(Console.Rea... | [["-", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["-", 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 | 328 |
using System;
using System.Collections.Generic;
class Solve {
int N;
long[] t;
long[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
bool[] c = new bool[N];
long[] d = new long[N];
long count = 1;
for (int i = 0; i < N;... | using System;
using System.Collections.Generic;
class Solve {
int N;
long[] t;
long[] a;
public Solve() {}
public static int Main() {
new Solve().Calc();
return 0;
}
void Calc() {
getinput();
bool[] c = new bool[N];
long[] d = new long[N];
long count = 1;
for (int i = 0; i < N;... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 204, 205, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 75, 57, 15, 16, 31, 204, 206, 207, 0, ... | 8 | 559 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
// using System.Numerics; //comment out if AOJ
using System.Text;
using Problem = Tmp.Problem;
using MyIO;
#pragma warning disable // for AOJ
namespace Tmp {
class Problem : IDispo... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 1,418 |
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() {
bool[] fix = new bool[N];
int[] min = new int[N];
int[] minf = new in... | 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() {
bool[] fix = new bool[N];
int[] min = new int[N];
int[] minf = new in... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203... | 8 | 719 |
using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && a == c)
Console.WriteLine(1);
else if (a != b && a == ... | using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && b == c)
Console.WriteLine(1);
else if (a != b && a != c... | [["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 75, 57, 15, 16, 12, 16, 12, 16, 1... | 8 | 138 |
using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && a == c)
Console.WriteLine("1");
else if (a == b && a !=... | using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && a == c)
Console.WriteLine("1");
else if (a == b || b ==... | [["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 98], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 17, 79], ["-", 75, 57, 15, 16, 31, 16, 12, 16, 12, 22], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 75, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 75, 57, 15, 16, 31, 16, 12, 16, ... | 8 | 144 |
using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && a == c)
Console.WriteLine("1");
else if (a == b && a !=... | using System;
namespace ABC026A {
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.Parse(word[2]);
if (a == b && a == c)
Console.WriteLine("1");
else if (a == b && a !=... | [["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["+", 75, 57, 15, 16, 12, 16, 31, 16, 17, 60], ["+", 75, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 57, 75, 57, 15, 16, 12, 16, 17, 98], ["+", 75, 57, 15, 16, 12, 16, 12, 16, 31, 22], ["+", 75, 57, 15, 16, 12, 16, 12, 16, ... | 8 | 144 |
using System;
namespace Vanila {
public class Program {
static void Main(string[] args) {
string[] p = Console.ReadLine().Split(' ');
string a = p[0];
string b = p[1];
string c = p[2];
if (p[0] == p[1] && p[1] == p[2]) {
Console.WriteLine(1);
} else if ((a != b && b == c) || (a == b && ... | using System;
namespace Vanila {
public class Program {
static void Main(string[] args) {
string[] p = Console.ReadLine().Split(' ');
string a = p[0];
string b = p[1];
string c = p[2];
if (p[0] == p[1] && p[1] == p[2]) {
Console.WriteLine(1);
} else if ((a != b && b == c) || (b != c && ... | [["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 17, 60], ["-", 15, 16, 31, 16, 12, 23, 0, 16, 17, 98], ["-", 31, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 15, 16, 31, 16, 12, 23, 0, 16, 17, 98], ["+", 31, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 12, 16, 17, 60... | 8 | 286 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
Console.WriteLine(Console.ReadLine().Distinct().Count());
}
}
| using System;
using System.Linq;
class Program {
static void Main(string[] args) {
Console.WriteLine(Console.ReadLine().Split(' ').Distinct().Count());
}
}
| [["+", 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, 252, 0, 104], ["+", 205, 213, 3, 4, 0, 28, 0, 252, 0, 253], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131]] | 8 | 42 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int[] penk = new int[3];
var imp = Console.ReadLine().Split(' ');
penk[0] = int.Parse(imp[0]);
penk[1] = int.Pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
int[] penk = new int[3];
var imp = Console.ReadLine().Split(' ');
penk[0] = int.Parse(imp[0]);
penk[1] = int.Pa... | [["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 106], ["+", 0, 57, 75, 57, 15, 16, 12, 23, 0, 24], ["+", 15, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 204, 205, 22], ["+", 31, 23, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 23, 0, 16, 31, 204, 206, 207,... | 8 | 228 |
using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var d = new Dictionary<char, int>();
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
for (int i = 0; i < n; i++) {
... | using System.Linq;
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var d = new Dictionary<char, int>();
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = int.Parse(line[1]);
for (int i = 0; i < n; i++) {
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 204, 205, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197,... | 8 | 304 |
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;
class Simple {
int N, K;
string[] P;
void Solve() {
// input
N = io.Int;
K = io.Int;
P = new string[N];
for ... | 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;
class Simple {
int N, K;
string[] P;
void Solve() {
// input
N = io.Int;
K = io.Int;
P = new string[N];
for ... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35], ["-", 8, 196... | 8 | 496 |
using System;
using System.Collections.Generic;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
static readonly string AZ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char[] AZAry;
int[] AZCnt;
... | using System;
using System.Collections.Generic;
using System.IO;
#region Program
namespace Program {
#region Solver
public class Solver {
static IO.StreamScanner sc =
new IO.StreamScanner(Console.OpenStandardInput());
static readonly string AZ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char[] AZAry;
int[] AZCnt;
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, ... | 8 | 1,032 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] A = new int[26];
for (int i = 0; i < N; i++) {
A[P[i][0] - 'A... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TEST {
static void Main() {
Sol mySol = new Sol();
mySol.Solve();
}
}
class Sol {
public void Solve() {
int[] A = new int[26];
for (int i = 0; i < N; i++) {
A[P[i][0] - 'A... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0,... | 8 | 490 |
using System;
using System.Linq;
namespace kupc2016_c {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 1)
Console.WriteLine(x[1]);
el... | using System;
using System.Linq;
namespace kupc2016_c {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x[0] == 1)
Console.WriteLine(x[1]);
el... | [["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 203], ["+", 0, 41, 64, 16, 31, 16, 12, 23, 0, 24], ["+", 64, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 41, 64, 16, 31, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 41, 64, 16, 17, 72], ["-", 0, 28, 0, 41, 75, 16, 31, 16, 31, 203], ["+",... | 8 | 145 |
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() {
for (; T > 0; T--) {
var d = ria();
var N = d[0];
var D = d... | 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() {
for (; T > 0; T--) {
var d = ria();
var N = d[0];
var D = d... | [["-", 0, 28, 0, 16, 31, 16, 31, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, ... | 8 | 389 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
long answer = 0;
long count = 0;
foreach (var c in s) {
if (c == 'S') {
count++;
} else {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderA {
static void Main() {
var sc = new Scanner();
string s = sc.Next();
long remove = 0;
long count = 0;
foreach (var c in s) {
if (c == 'S') {
count++;
} else {
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 214, 205... | 8 | 399 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using ll = System.Int64;
public class Contest {
static void Swap1<T>(ref T a, ref T b) {
T t = a;
a = b;
b = t;
}
static void Swap2<T>(ref T a, ref T b)
where T : ICompa... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22... | 8 | 3,129 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC005STing {
class Program {
static void Main(string[] args) {
string X = Console.ReadLine();
Stack<char> stack = new Stack<char>();
foreach (var c in X) {
if (c == 'T') {... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AGC005STing {
class Program {
static void Main(string[] args) {
string X = Console.ReadLine();
Stack<char> stack = new Stack<char>();
foreach (var c in X) {
if (c == 'T') {... | [["+", 8, 196, 0, 210, 8, 196, 0, 57, 0, 95], ["+", 0, 210, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], [... | 8 | 133 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace tes {
class contest {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
int countS = 0;
int countT = 0;
bool S = false;
for (int i = 0; i < s.Length; i++) {
... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
namespace tes {
class contest {
static void Main(string[] args) {
string s = Console.ReadLine();
int count = 0;
int countS = 0;
int countT = 0;
bool S = false;
for (int i = 0; i < s.Length; i++) {
... | [["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 24], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 47], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 41, 15, 23, 0, 25], ["+", 64, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["+", 0, 11, 12, 41, 64, 16, 31, 16, 31, 22], ["+", 0... | 8 | 216 |
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.Compile... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 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 | 790 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace codefestival_2016_qualA_A {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
Console.WriteLine(a.Substring(0, 4) + " " + a.Substring(5));
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace codefestival_2016_qualA_A {
class Program {
static void Main(string[] args) {
string a = Console.ReadLine();
Console.WriteLine(a.Substring(0, 4) + " " + a.Substring(4));
Console.... | [["-", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 12, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 28, 0, 16, 12, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 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 | 80 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
//出力の都度更新をやめる
var sw =
new StreamWriter(Console.OpenStandardOutput()) ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder2 {
class Program {
static void Main(string[] args) {
//出力の都度更新をやめる
var sw =
new StreamWriter(Console.OpenStandardOutput()) ... | [["+", 0, 212, 0, 41, 15, 16, 31, 204, 205, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 17, 60], ["+", 0, 212, 0, 41, 15, 16, 12, 252, 0, 104], ["+", 0, 212, 0, 41, 15, 16, 12, 2... | 8 | 494 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static int N;
static long mod = 1000000007;
static char[] az =
Enumerable.Range('a', 'z' - 'a' + 1).Se... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using static System.Math;
using System.Linq;
using static System.Array;
namespace ConsoleApp2 {
class Program {
static int N;
static long mod = 1000000007;
static char[] az =
Enumerable.Range('a', 'z' - 'a' + 1).Se... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 16, 31, 214... | 8 | 315 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_C.Lib_IO;
using static Contest_C.Lib_Minifunc;
namespace Cont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using CS = System.Runtime.CompilerServices;
// using System.Diagnostics;
using static System.Math;
using ll = System.Int64;
using static Contest_C.Lib_IO;
using static Contest_C.Lib_Minifunc;
namespace Cont... | [["+", 0, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 4,263 |
using System;
using System.Text;
class Program {
static void Main() { new Program().Solve(); }
public void Solve() {
string s = Console.ReadLine();
int k = int.Parse(Console.ReadLine());
var t = new StringBuilder();
for (int i = 0; i < s.Length; i++) {
if (i == s.Length - 1) {
t.Appe... | using System;
using System.Text;
class Program {
static void Main() { new Program().Solve(); }
public void Solve() {
string s = Console.ReadLine();
int k = int.Parse(Console.ReadLine());
var t = new StringBuilder();
for (int i = 0; i < s.Length; i++) {
if (i == s.Length - 1) {
t.Appe... | [["-", 0, 57, 75, 57, 64, 196, 0, 116, 0, 117], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 104], ["+", 0, 213, 3, 4, 0, 28, 0, 252, 0, 253]... | 8 | 239 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const char White = '.';
const char Black = '#';
const long Mod = 1000000007;... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
const string Yes = "Yes";
const string No = "No";
const char White = '.';
const char Black = '#';
const long Mod = 1000000007;... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 253], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 14... | 8 | 381 |
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, 260, 0, 35], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 109], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203]... | 8 | 260 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace CODEFESTIVAL2016QA.C {
using static Util;
public class Solver : SolverBase {
char[] S;
int K;
public void Run() {
S = ReadLine().ToCharArray();
K... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Numerics;
namespace CODEFESTIVAL2016QA.C {
using static Util;
public class Solver : SolverBase {
char[] S;
int K;
public void Run() {
S = ReadLine().ToCharArray();
/... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 2,440 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var sol = new Solve();
sol.Exec();
}
}
class Solve {
public void Exec() {
var s = Console.ReadLine().ToCharArray();
var n = int.Parse(Console.ReadLine());
for (var i = 0; i <... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var sol = new Solve();
sol.Exec();
}
}
class Solve {
public void Exec() {
var s = Console.ReadLine().ToCharArray();
var n = int.Parse(Console.ReadLine());
for (var i = 0; i <... | [["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 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, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12,... | 8 | 198 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.MaxValue / 2;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Array;
using static AtCoder.Tool;
namespace AtCoder {
class AC {
const int MOD = 1000000007;
const int INF = int.MaxValue / 2;
const long SINF = long.MaxValue / 2;
... | [["+", 0, 11, 12, 41, 15, 16, 31, 204, 205, 22], ["+", 12, 41, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 41, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 1, 0, 11, 12, 41, 15, 16, 17, 60], ["+", 0, 11, 12, 41, 15, 16, 12, 252, 0, 253], ["+", 0, 11, 12, 41, 15, 16, 12, 2... | 8 | 498 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace AtCoder {
class Program {
private static string Read() { return Console.ReadLine(); }
private static int ReadInt() { return int.Parse(Read()); }
private static long ReadLong() { return long.P... | [["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 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, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12,... | 8 | 344 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection.Emit;
using System.Runtime.Remoting.Proxies;
using System.Text;
using static System.Console;
using static System.Math;
using static E... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection.Emit;
using System.Runtime.Remoting.Proxies;
using System.Text;
using static System.Console;
using static System.Math;
using static E... | [["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 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, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12,... | 8 | 2,673 |
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 {
////////////////////////////////////////////////////////////
string s;
int K;
void Solve... | 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 {
////////////////////////////////////////////////////////////
string s;
int K;
void Solve... | [["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 12, 16, 31, 16, 31, 16, 31, 252, 0, 104], ["-", 12, 16, 31, 16, 31, 16, 31, 252, 0, 253], ["-", 15, 16, 12, 16, 31, 16, 31, 16, 17, 33], ["-", 12, 16, 31, 16, 31, 16, 12, 204, 205, 22], ["+", 15, 16, 12, 16, 31, 16, 3... | 8 | 7,501 |
using System;
namespace codefestival_2016_qualA_c {
class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
long k = long.Parse(Console.ReadLine());
for (int i = 0; i < s.Length - 1; i++) {
if (s[i] + k > 'z') {
k -= 'z' + 1 - s[i];
s[i] = 'a';
}
... | using System;
namespace codefestival_2016_qualA_c {
class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
long k = long.Parse(Console.ReadLine());
for (int i = 0; i < s.Length - 1; i++) {
if (s[i] != 'a' && s[i] + k > 'z') {
k -= 'z' + 1 - s[i];
s[i] = 'a... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 104], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 253], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 15, 16, 12, 16, 31, 16, 31, 204, 205, 22], ["+", 12, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 2... | 8 | 155 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
long k = long.Parse(Console.ReadLine());
long remain = k;
for (i... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
class Program {
static void Main() {
char[] s = Console.ReadLine().ToCharArray();
long k = long.Parse(Console.ReadLine());
long remain = k;
for (i... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 202 |
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace tes {
class contest {
static void Main(string[] args) {
var s = Console.ReadLine();
var num = int.Parse(Console.ReadLine());
var c = s.ToArray();
fo... | using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace tes {
class contest {
static void Main(string[] args) {
var s = Console.ReadLine();
var num = int.Parse(Console.ReadLine());
var c = s.ToArray();
fo... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 1... | 8 | 192 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
char[] inpt = Reader.ReadLine().ToArray();
long cnt = long.Parse(Reader.ReadLine());
for (int i = 0; i < inpt.Length; i++) {
if (cnt == 0) {
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
public void Proc() {
Reader.IsDebug = false;
char[] inpt = Reader.ReadLine().ToArray();
long cnt = long.Parse(Reader.ReadLine());
for (int i = 0; i < inpt.Length; i++) {
if (cnt == 0) {
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 6... | 8 | 295 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Segtree<T> {
int n;
T[] tree;
Func<T, T, T> f;
T exnum;
public Segtree(int m, Func<T, T, T> f, T ex) {
this.f = f;
this.exnum = ex;
n = 1;
while (n < m)
n <<= 1;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Segtree<T> {
int n;
T[] tree;
Func<T, T, T> f;
T exnum;
public Segtree(int m, Func<T, T, T> f, T ex) {
this.f = f;
this.exnum = ex;
n = 1;
while (n < m)
n <<= 1;
... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 16... | 8 | 655 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
class Program {
const int M = 1000000007;
const double eps = 1e-9;
static int[] dd = { 0, 1, 0, -1, 0 };
static void Main() {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
var sc... | [["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 31, 23, 0, 16, 31, 16, 12, 252, 0, 104], ["+", 31, 23, 0, 16, 31, 16, 12, 252, 0, 253], ["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 28, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 74, 51, 23, 0, 16, 12, 252, 0, 104],... | 8 | 2,466 |
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var r = sc... | using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using Debug = System.Diagnostics.Debug;
using StringBuilder = System.Text.StringBuilder;
using System.Numerics;
using Number = System.Int64;
namespace Program {
public class Solver {
public void Solve() {
var r = sc... | [["-", 0, 1, 0, 11, 12, 11, 12, 214, 205, 199], ["-", 0, 1, 0, 11, 12, 11, 12, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 11, 12, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 11, 12, 16, 31, 203], ["+", 0, 1, 0, 11, 12, 11, 12, 16, 17, 151], ["+", 0, 1, 0, 11, 12, 11, 12, 16, 12, 203], ["-", 0, 11, 12, 16, 31, 213, 63, 214, 205, 22... | 8 | 1,516 |
using System;
using System.Linq;
namespace ABC045 {
class B {
static void Main(string[] args) {
var sa = Console.ReadLine().ToList();
var sb = Console.ReadLine().ToList();
var sc = Console.ReadLine().ToList();
char c = sa[0];
sa.RemoveAt(0);
// Console.WriteLine(string.Join(',', sa));
f... | using System;
using System.Linq;
namespace ABC045 {
class B {
static void Main(string[] args) {
var sa = Console.ReadLine().ToList();
var sb = Console.ReadLine().ToList();
var sc = Console.ReadLine().ToList();
char c = sa[0];
sa.RemoveAt(0);
// Console.WriteLine(string.Join(',', sa));
f... | [["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 205, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 16, 12, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 265 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B_016_45 {
internal class Program {
private static void Main(string[] args) { new Logic_B().Start(); }
public class Logic_B {
public void Start() {
var A = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B_016_45 {
internal class Program {
private static void Main(string[] args) {
// new Logic_A().Start();
new Logic_B().Start();
Console.ReadLine();
}
public class Logic_B {
... | [["+", 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, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-"... | 8 | 325 |
using System;
using System.IO;
public class CodeFile1 {
public static void Main() {
string a_hand = Console.ReadLine();
string b_hand = Console.ReadLine();
string c_hand = Console.ReadLine();
turn(a_hand, b_hand, c_hand, 0, 0, 0, "a");
}
public static void turn(string a_hand, string b_hand, str... |
using System;
using System.IO;
public class CodeFile1 {
public static void Main() {
string a_hand = Console.ReadLine();
string b_hand = Console.ReadLine();
string c_hand = Console.ReadLine();
turn(a_hand, b_hand, c_hand, 0, 0, 0, "a");
}
public static void turn(string a_hand, string b_hand, str... | [["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 205, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.