buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var array = Console.ReadLine().Split().Select(int.Parse).ToArray();
var array2 = array.Distinct().ToArray();
if (array.Len... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var array = Console.ReadLine().Split().Select(int.Parse).ToArray();
var array2 = array.Distinct().ToArray();
if (array.Len... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 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, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0... | 8 | 114 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static ConsoleApp.Util;
using static System.Math;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var arr = ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray();
if (arr[0... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static ConsoleApp.Util;
using static System.Math;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var arr = ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray();
if (arr[0... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 75, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 75, 57, 15, 16, 31,... | 8 | 175 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class19 {
static void Main() {
var abc = Console.ReadLine().Split();
string a = abc[0], b = abc[1], c = abc[2];
if (a == b) {
if (a != c) {
Cons... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class19 {
static void Main() {
var abc = Console.ReadLine().Split();
string a = abc[0], b = abc[1], c = abc[2];
if (a == b) {
if (a != c) {
Cons... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 140 |
using System;
using System.Linq;
namespace ABC155A {
class MainClass {
public static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int cnt = 0;
if (a[0] == a[1])
cnt++;
if (a[1] == a[2])
cnt++;
Console.WriteLine(cnt == 1 ? "Yes" : "No");
... | using System;
using System.Linq;
namespace ABC155A {
class MainClass {
public static void Main(string[] args) {
int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
int cnt = 0;
if (a[0] == a[1])
cnt++;
if (a[1] == a[2])
cnt++;
if (a[0] == a[2])
cnt++;
Console.W... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16... | 8 | 106 |
using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
//入力
int n = int.Parse(Console.ReadLine());
string line = Console.ReadLine();
string[] array = line.Split(' ');
int[] arr = new int[n];
for (int index = 0; index < n; index++) {
int num = int.Pars... | using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
//入力
int n = int.Parse(Console.ReadLine());
string line = Console.ReadLine();
string[] array = line.Split(' ');
int[] arr = new int[n];
for (int index = 0; index < n; index++) {
int num = int.Pars... | [["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 98], ["-", 64, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, ... | 8 | 196 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp14 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Calc();
}
}
public class Solver {
public void Calc() {
var N = int.Parse(Console.ReadLine());
var As... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp14 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Calc();
}
}
public class Solver {
public void Calc() {
var N = int.Parse(Console.ReadLine());
var As... | [["+", 8, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 17, 60], ["+", 0, 28, 0, 218, 8, 16, 31, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 218, 8, 16, 17, 106], ["+", 0, 218, 8, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 218, 8, 16, 12, 16, 31, 16, 17, 109], ["+", 8, 16, 12, 16, 31, 16, 12, 23, 0, 24], [... | 8 | 153 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B {
class Program {
static void Main(string[] args) {
var time = int.Parse(Console.ReadLine());
var info = Console.ReadLine().Split(' ');
var nums = new int[time];
int check =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B {
class Program {
static void Main(string[] args) {
var time = int.Parse(Console.ReadLine());
var info = Console.ReadLine().Split(' ');
var nums = new int[time];
bool check ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["-", 64, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 64, 196, 0, 57, 15, 16... | 8 | 184 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var l1 = ReadIntArray();
var hp = l1[0];
var sp_types = l1[1];
var sp_damage_list = ReadIntArray();
var damage_total =
sp_damage_list.OrderByDescending(_ => _).Take(sp_types).Sum();
Console.WriteLine(d... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var l1 = ReadIntArray();
var hp = l1[0];
var sp_types = l1[1];
var sp_damage_list = ReadIntArray();
var damage_total =
sp_damage_list.OrderByDescending(_ => _).Take(sp_types).Sum();
Console.WriteLine(h... | [["-", 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, 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, 1... | 8 | 161 |
using System;
using System.Collections.Generic;
using System.Linq;
class TEST {
public static void Main() {
string[] value1 = Console.ReadLine().Split(
new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
int num = int.Parse(value1[0]);
int hissatu = int.Parse(value1[1]);
long attack... | using System;
using System.Collections.Generic;
using System.Linq;
class TEST {
public static void Main() {
string[] value1 = Console.ReadLine().Split(
new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
int num = int.Parse(value1[0]);
int hissatu = int.Parse(value1[1]);
long attack... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 16, 31, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 20... | 8 | 251 |
using System;
using System.Linq;
namespace AtCoder2020Ned {
class Program {
static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var numberOfMonsters = int.Parse(inputs[0]);
var numberOfFennecUltimate = int.Parse(inputs[1]);
var secondInputs = Console.ReadLine().Split(' ');
... | using System;
using System.Linq;
namespace AtCoder2020Ned {
public class Program {
public static void Main(string[] args) {
var inputs = Console.ReadLine().Split(' ');
var numberOfMonsters = int.Parse(inputs[0]);
var numberOfFennecUltimate = int.Parse(inputs[1]);
var secondInputs = Console.ReadLine(... | [["+", 0, 209, 8, 201, 0, 235, 0, 251, 0, 259], ["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["-", 0, 28, 0, 218, 8, 23, 0, 16, 31, 22], ["-", 0, 28, 0, 218, 8, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 218, 8, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 218, 8, 23, 0, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8... | 8 | 219 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141... | 8 | 176 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main(string[] args) {
string[] original_enemy = Console.ReadLine().Split();
int enemy = int.Parse(original_enemy[0]);
int special_attack = in... | [["-", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["-", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 2... | 8 | 176 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc153_c {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
long N = long.Parse(NK[0]); //攻撃モンスターの体力を1減らす
long K = long.Parse(NK[1]);... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc153_c {
class Program {
static void Main(string[] args) {
string[] NK = Console.ReadLine().Split(' ');
long N = long.Parse(NK[0]); //攻撃モンスターの体力を1減らす
long K = long.Parse(NK[1]);... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 197 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r = ReadSplit();
var N = r[0].ToInt();
var K = r[1].ToInt();
var r2 = ReadSplit();... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r = ReadSplit();
var N = r[0].ToDecimal();
var K = r[1].ToDecimal();
var r2 = Read... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 7, 8, 196, 0... | 8 | 310 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
namespace at_coder {
#if TEST
[TestClass]
#endif
public class Test_153_c {
#if TEST
public static void Test_Main()
#else
public static void Main()
#endif
{
var ar = ReadIntArray(... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
namespace at_coder {
#if TEST
[TestClass]
#endif
public class Test_153_c {
#if TEST
public static void Test_Main()
#else
public static void Main()
#endif
{
var ar = ReadIntArray(... | [["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 205, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 8, 196, 0, 210, 12, 2... | 8 | 302 |
using System;
class Program {
static void Main(string[] args) {
var line = System.Console.ReadLine();
var data = line.Split(new char[] { ' ' });
long N = Convert.ToInt64(data[0]);
long K = Convert.ToInt64(data[1]);
line = System.Console.ReadLine();
data = line.Split(new char[] { ' ' });
u... | using System;
class Program {
static void Main(string[] args) {
var line = System.Console.ReadLine();
var data = line.Split(new char[] { ' ' });
long N = Convert.ToInt64(data[0]);
long K = Convert.ToInt64(data[1]);
line = System.Console.ReadLine();
data = line.Split(new char[] { ' ' });
u... | [["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 212, 0, 227, 39, 224, ... | 8 | 241 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc153_c {
class Program {
static void Main(string[] args) {
List<decimal> input1 =
Console.ReadLine().Split(' ').Select(decimal.Parse).ToList();
List<decimal> input2 =
Console.ReadLine().Split(' ').Select(decimal.Pa... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc153_c {
class Program {
static void Main(string[] args) {
List<decimal> input1 =
Console.ReadLine().Split(' ').Select(decimal.Parse).ToList();
List<decimal> input2 =
Console.ReadLine().Split(' ').Select(decimal.Pa... | [["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 195, 8, 196, 0, 57, 15, 16... | 8 | 166 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace CSharp {
class Program {
static void Main(string[] args) {
// 入力
var input = Console.ReadLine().Split(' ');
var monsterCount = int.Parse(input[0]);
var specialAtk = int.Parse(input[1]);
... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace CSharp {
class Program {
static void Main(string[] args) {
// 入力
var input = Console.ReadLine().Split(' ');
var monsterCount = int.Parse(input[0]);
var specialAtk = int.Parse(input[1]);
... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 210, 8, 196, 0, 1, 0, 35]] | 8 | 216 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC153 {
class Program {
static void Main(string[] args) { c(); }
public static void c() {
long[] nk =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
l... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC153 {
class Program {
static void Main(string[] args) { c(); }
public static void c() {
long[] nk =
Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
l... | [["+", 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, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]] | 8 | 197 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = input[0];
var K = input[1];
var H = Console.ReadLine().Split().Select(long.Parse).ToArray();
Array.Sort(H);
Array.Reverse(H);
... | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split().Select(long.Parse).ToArray();
var N = input[0];
var K = input[1];
var H = Console.ReadLine().Split().Select(long.Parse).ToArray();
Array.Sort(H);
Array.Reverse(H);
... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], [... | 8 | 135 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-",... | 8 | 557 |
using System;
class DCaracalVsMonster {
static void Main(string[] args) {
long H = long.Parse(System.Console.ReadLine());
long rtn = 0;
int i = 0;
while (H > 1) {
System.Console.WriteLine(rtn.ToString());
H = H / 2;
rtn = rtn + ((long)(Math.Pow(2, i + 1)));
i++;
}
rtn ... | using System;
class DCaracalVsMonster {
static void Main(string[] args) {
long H = long.Parse(System.Console.ReadLine());
long rtn = 0;
int i = 0;
while (H > 1) {
H = H / 2;
rtn = rtn + ((long)(Math.Pow(2, i + 1)));
i++;
}
rtn = rtn + 1;
System.Console.WriteLine(rtn.ToSt... | [["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 20... | 8 | 115 |
using System;
using System.Collections.Generic;
class A {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long count = 0;
long d = 0;
while (N != 1) {
N /= 2;
count += (long)Math.Pow(2, d++);
}
Console.WriteLine(count);
Console.WriteLine(count + (lo... | using System;
using System.Collections.Generic;
class A {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long count = 0;
long d = 0;
while (N != 1) {
N /= 2;
count += (long)Math.Pow(2, d++);
}
Console.WriteLine(count + (long)Math.Pow(2, d));
}
} | [["-", 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, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22]] | 8 | 102 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace lineAralgebra {
class Program {
public static void Main(String[] args) {
var input = long.Parse(Console.ReadLine());
long ans = 1;
var height = Math.Log(input, 2);
System.Console.WriteLine(height);
for (double i = 0; i ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace lineAralgebra {
class Program {
public static void Main(String[] args) {
var input = long.Parse(Console.ReadLine());
long ans = 1;
var height = Math.Log(input, 2);
for (double i = 0; i <= height; i++) {
ans *= 2;
... | [["-", 0, 1, 0, 213, 63, 214, 205, 214, 205, 22], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 0, 131], ["-", 0, 1, 0, 213, 63, 214, 205, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22... | 8 | 106 |
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace FertiLib.Contest.E {
static class Program {
public static void Solve(Scanner cin) {
var (h, n) = cin.ReadValue<int, int>();
var (a, b) = cin.Read... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace FertiLib.Contest.E {
static class Program {
public static void Solve(Scanner cin) {
var (h, n) = cin.ReadValue<int, int>();
var (a, b) = cin.Read... | [["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 205, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 31, 203], ["-",... | 8 | 2,787 |
using System;
using System.Linq;
namespace PracticeForAtCoder {
class Program {
static void Main(string[] args) {
//ここから
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int k = int.Parse(str[1]);
str = Console.ReadLine().Split(' ');
int[] p = new int[n];
for (int... | using System;
using System.Linq;
namespace PracticeForAtCoder {
class Program {
static void Main(string[] args) {
//ここから
string[] str = Console.ReadLine().Split(' ');
int n = int.Parse(str[0]);
int k = int.Parse(str[1]);
str = Console.ReadLine().Split(' ');
int[] p = new int[n];
for (int... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], [... | 8 | 236 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.txt");
// MyDebugger.Test(process, "../TextFile2.txt");
// MyDebugger.MakeTes... | [["-", 0, 227, 39, 224, 225, 226, 0, 16, 17, 48], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 225, 226, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 225, 226, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 225, 226, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 225, 226, 0, ... | 8 | 397 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
public class Class1 {
static Dictionary<Tuple<long, long>, long> dic... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
public class Class1 {
static Dictionary<Tuple<long, long>, long> dic... | [["-", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 212, 0, 16, 31, 204, 205, 204, 205, 22], ["+", 0, 16, 31, 204, 205, 204, 206, 207, 0, 70], ["+", 31, 204, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 212, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 2... | 8 | 1,301 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flus... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flus... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 48], ["-", 0, 212, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 12, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["-", 12, 23, 0, 16, 31, 16, 31, 23, 0, 25], [... | 8 | 2,749 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace A {
class StartingPoint {
static void Main(string[] args) {
if (args?.Any() == true) {
var assembly = Assembly.GetEntryAssembly();
var resourceName = "AtCoderCShar... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace A {
class StartingPoint {
static void Main(string[] args) {
if (args?.Any() == true) {
var assembly = Assembly.GetEntryAssembly();
var resourceName = "AtCoderCShar... | [["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 73], ["+", 63, 214, 205, 213, 63, 214, 205, 214, 0, 131], ["+", 63, 214, 205, 213, 63, 214, 205, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 21... | 8 | 906 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_F.Lib_IO;
using static Contest_F.Lib_Minifunc;
public static class Contest_F
{
public static ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_F.Lib_IO;
using static Contest_F.Lib_Minifunc;
public static class Contest_F
{
public static ... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 23, 0, 41, 64, 16, 12, 23, 0, 24], ["+", 64, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 64, 16, 12, 23, 0, 41, 15, 16, 12, 203], ["+", 0, 41, 64, 16, 12, 23, 0, 41, 0, 101], ["+", 64, 16, 12, 23, 0, 41, 64, 241, 0, 33], ["+... | 8 | 3,037 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
int D = int.Parse(str[1]);
int A = int.Parse(str[2]);
int[][] B = new int [N][];
for (var i = 0; i < N; i++) {
string[] ... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split();
int N = int.Parse(str[0]);
int D = int.Parse(str[1]);
int A = int.Parse(str[2]);
int[][] B = new int [N][];
for (var i = 0; i < N; i++) {
string[] ... | [["+", 0, 227, 0, 229, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+... | 8 | 433 |
using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC152A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC152A {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | [["-", 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, 203], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 825 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Co... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Co... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, ... | 8 | 1,037 |
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, ' '));
}
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 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, 20], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12,... | 8 | 483 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1... | 8 | 425 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ComparingStrings {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int leftString = int.Parse(input[0]);
int rightString = int.Parse(input[1]);
List<int> leftStringList = new L... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ComparingStrings {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split(' ');
int leftString = int.Parse(input[0]);
int rightString = int.Parse(input[1]);
List<int> leftStringList = new L... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 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, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 57, 15, 16, 31, 204, 206, 207... | 8 | 253 |
using System;
using System.Linq;
class Program {
public static void Main() {
int[] input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int a, b;
if (input[0] == input[1]) {
a = input[0];
b = input[0];
} else if (input[0] > input[1]) {
a = input[0];
... | using System;
using System.Linq;
class Program {
public static void Main() {
int[] input =
Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
int num, time;
if (input[0] == input[1]) {
num = input[0];
time = input[0];
} else if (input[0] < input[1]) {
num = ... | [["-", 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, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["-", 75, 57, 64, 196, 0, 1, 0, 11, 31, 22]... | 8 | 154 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
string str = (a > b) ? b.ToString() : a.ToString();
int count = (a > b) ? ... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
string str = (a > b) ? b.ToString() : a.ToString();
int count = (a > b) ? ... | [["+", 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, 5, 0, 62], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-... | 8 | 135 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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, 5, 0, 62], ["-", 0, 57, 64, 1, 0, 11, 12, 230, 0, 228], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 64, 1, 0, 11, 12, 213, 63, 214, 141... | 8 | 480 |
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, ' '));
}
... | [["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 57, 64, 196, 0, 7, 0, 24], ["+", 0, 57, 64, 196, 0, 7, 10, 198, 39, 199], ["+", 64, 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, 196, 0, 57, 64, 196, 0, 7, 0, 35], [... | 8 | 489 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
public class Test152_b {
/// <summary>
/// https://atcoder.jp/contests/abc152/tasks/abc152_b
/// </summary>
public static void Main() {
string[] ss = Console.... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
public class Test152_b {
/// <summary>
/// https://atcoder.jp/contests/abc152/tasks/abc152_b
/// </summary>
public static void Main() {
string[] ss = Console.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39, 22], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 2... | 8 | 223 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static ConsoleApp.Util;
using static System.Math;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var arr = ReadLine().Split().Select(long.Parse).ToArray();
long n = arr[0];
lon... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static ConsoleApp.Util;
using static System.Math;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var arr = ReadLine().Split().Select(long.Parse).ToArray();
long n = arr[0];
lon... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200,... | 8 | 267 |
using System;
class Program {
static void Main(string[] args) {
// int n = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
int cnt = n - k + 1;
long ma... | using System;
class Program {
static void Main(string[] args) {
// int n = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int n = int.Parse(input[0]);
int k = int.Parse(input[1]);
string[] input2 = Console.ReadLine().Split(' ');
long max = 0;
long tmpSum = ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17... | 8 | 178 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
struct mint : IEquatable<mint> {
// static uint mod = 998244353;
static uint mod = 1000000007;
uint _v;
public mint(long v) : this((uint)(v % mod + mod)) {}
private mint(uint v) { _v = v < mod ?... | [["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+",... | 8 | 3,569 |
using System;
using System.Linq;
class Program {
static void Main() {
var kn = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Parse(number));
var p = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Par... | using System;
using System.Linq;
class Program {
static void Main() {
var kn = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Parse(number));
var p = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }),
number => int.Par... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 2... | 8 | 295 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flus... | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Practice {
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flus... | [["-", 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], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 0, 101], ["-", 8, 196, 0, 1, 0, 11, 12, 41, 64... | 8 | 2,561 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveStringArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) {... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoders {
class Program {
static void Main(string[] args) {
var inputArray = retreiveStringArray();
var inputCount = 1;
// 不正な入力は処理しない
if (inputArray.Length != inputCount) ... | [["-", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 0,... | 8 | 645 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace _200523 {
public class Solve {
public static void Main(string[] args) { (new Solve())._E(); }
string n;
int len;
int k;
long ans = 0;
void _E() {
n = Ex.Read;
len = n.Length;
k = Ex.ReadInt;
... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace _200523 {
public class Solve {
public static void Main(string[] args) { (new Solve())._E(); }
string n;
int len;
int k;
long ans = 0;
void _E() {
n = Ex.Read;
len = n.Length;
k = Ex.ReadInt;
... | [["-", 0, 213, 3, 4, 0, 28, 0, 211, 0, 147], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 98], ["+", 0, 28, 0, 16, 12, 16, 31, 204, 205, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 16, 12, 16, 31, 204, 206, 207, 0, 73]... | 8 | 716 |
using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
#region Reader
// static Vector2Int ReadVec2Int
//{
// get
// {
// ... | using System.Collections;
using System.Text;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Numerics;
class Program {
#region Reader
// static Vector2Int ReadVec2Int
//{
// get
// {
// ... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 39, 236, 237, 238, 0, 224, 225, 226, 0, 70], ["-", 39, 236, 237, 238, 0, 224, 225, 226, 0, 73], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, ... | 8 | 1,489 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var n = Read();
var k = Read().ToInt();
decimal ans = 0;
if (n.Length < k) {
Wri... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var n = Read();
var k = Read().ToInt();
decimal ans = 0;
if (n.Length < k) {
Wri... | [["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 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, 93, 0, 94], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], [... | 8 | 823 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
var N = Console.ReadLine();
var K = long.Parse(Console.ReadLine());
Console.WriteLine(AlmostEverywhereZero(N... | using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
static void Main(string[] args) {
var N = Console.ReadLine();
var K = long.Parse(Console.ReadLine());
Console.WriteLine(AlmostEverywhereZero(N... | [["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 24], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 17, 20], ["+", 75, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 25], ["+", 75, 57, 64, 196, 0, 57, 64, 196, 0,... | 8 | 1,124 |
using System;
using System.Linq;
namespace PracticeForAtCoder {
class Program {
static void Main(string[] args) {
//ここから
string n = Console.ReadLine();
int k = int.Parse(Console.ReadLine());
int ans = Solve(n, k);
Console.WriteLine(ans);
//ここまで
}
static int ncr(int n, int r) {
int ... | using System;
using System.Linq;
namespace PracticeForAtCoder {
class Program {
static void Main(string[] args) {
//ここから
string n = Console.ReadLine();
int k = int.Parse(Console.ReadLine());
int ans = Solve(n, k);
Console.WriteLine(ans);
//ここまで
}
static int ncr(int n, int r) {
int ... | [["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 52, 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, 203], ["+", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 52, 15, 16, 31, 1... | 8 | 304 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var N = GetStr();
var K = GetInt();
var C = N.Length;
var dp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
class Program {
static void Main() {
Solve();
Console.ReadKey();
}
static void Solve() {
var N = GetStr();
var K = GetInt();
var C = N.Length;
var dp... | [["+", 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, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["+"... | 8 | 1,147 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionE {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class QuestionE {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Co... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12... | 8 | 478 |
using System;
using System.Linq;
public class AtCoder_154_E {
public static void Main() {
// var exStdIn = new System.IO.StreamReader("input.txt");
// System.Console.SetIn(exStdIn);
char[] n = Console.ReadLine().ToCharArray();
int k = int.Parse(Console.ReadLine());
long[] pow = new long[] { 1, ... | using System;
using System.Linq;
public class AtCoder_154_E {
public static void Main() {
// var exStdIn = new System.IO.StreamReader("input.txt");
// System.Console.SetIn(exStdIn);
char[] n = Console.ReadLine().ToCharArray();
int k = int.Parse(Console.ReadLine());
long[] pow = new long[] { 1, ... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 141... | 8 | 314 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class E {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class E {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 985 |
using System;
using System.Linq;
public class Test {
public static void Main() {
// my code goes here
var c = Console.ReadLine().Split().Select(b => int.Parse(b)).ToArray();
int h = c[0];
int a = c[1];
int ans = h / a + 1;
Console.WriteLine(ans);
}
} | using System;
using System.Linq;
public class Test {
public static void Main() {
// my code goes here
var c = Console.ReadLine().Split().Select(b => int.Parse(b)).ToArray();
int h = c[0];
int a = c[1];
int ans = h / a;
if (h % a != 0) {
ans++;
}
Console.WriteLine(ans);
}
} | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 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, 2... | 8 | 83 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var inp = Inputer.IntArray1Line();
var H = (inp[0] / inp[1]) + 1;
Console.Write(H);
}
}
/// <summary>
/// 素数かどうか判定する
/// </summar... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
var inp = Inputer.IntArray1Line();
var chousei = 1;
if (inp[0] % inp[1] == 0) {
chousei = 0;
}
var H = (inp[0] / inp[1... | [["+", 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, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 31, 204, 205... | 8 | 686 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Math;
using static System.Console;
using static exMath;
using static exReadLine;
class Program {
static void Main(string[] args) {
int H, A;
intReadLine(out H, out A);
WriteLine(1 + (H / A));
... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Math;
using static System.Console;
using static exMath;
using static exReadLine;
class Program {
static void Main(string[] args) {
int H, A;
intReadLine(out H, out A);
if (H % A == 0) {
... | [["+", 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 | 679 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
//入力
long[] inputLongArray =
Console.ReadLine().Split(' '... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
//入力
long n = long.Parse(Console.ReadLine());
long[] inputLon... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214... | 8 | 163 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TOPSIC {
partial class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
//入力値をスペース区切りで配列に格納
string[] inputStr = Console.ReadLine().Split(' ');
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TOPSIC {
partial class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
//入力値をスペース区切りで配列に格納
string[] inputStr = Console.ReadLine().Split(' ');
... | [["-", 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, 214, 205, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 22... | 8 | 205 |
using System;
using System.Linq;
public class Program {
public static void Main() {
if (0 == Console.ReadLine()
.Split()
.Select(int.Parse)
.Where(x => x % 2 == 0)
.Where(x => !(x % 3 == 0) && !(x % 5 == 0))
.Count()) {
Co... | using System;
using System.Linq;
public class Program {
public static void Main() {
Console.ReadLine();
if (0 == Console.ReadLine()
.Split()
.Select(int.Parse)
.Where(x => x % 2 == 0)
.Where(x => (!(x % 3 == 0)) && (!(x % 5 == 0)))
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 0, 28, 0, 218, 8, 16, 31, 23, 0, 24], ["+", 8... | 8 | 102 |
using System;
using System.Linq;
using System.Runtime.CompilerServices;
namespace AtCoderBeginnerContest155 {
class Program {
static void Main(string[] args) {
var number = ReadInt();
var numbers = ReadIntArray();
for (var i = 0; i < number; i++) {
if (numbers[i] % 2 == 0 && (numbers[i] % 3 != 0 ||... | using System;
using System.Linq;
namespace AtCoderBeginnerContest155 {
class Program {
static void Main(string[] args) {
var number = ReadInt();
var numbers = ReadIntArray();
for (var i = 0; i < number; i++) {
if (numbers[i] % 2 == 0 && numbers[i] % 3 != 0 && numbers[i] % 5 != 0) {
Console... | [["-", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 234, 22], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 0, 131], ["-", 0, 208, 0, 231, 141, 232, 234, 232, 141, 22], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 36, 36, 36, ... | 8 | 255 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string N = Console.ReadLine();
string[] a = Console.ReadLine().Split(' ');
int[] An = new int[a.Length];
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
string N = Console.ReadLine();
string[] a = Console.ReadLine().Split(' ');
int[] An = new int[a.Length];
... | [["+", 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, 211, 0, 147], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0... | 8 | 190 |
using System;
namespace atcorderpractice {
class Mainclass {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = new int[n];
string[] input = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
a[i] = int.Parse(input[i]);
}
bool judge = ... |
using System;
namespace atcorderpractice {
class Mainclass {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] a = new int[n];
string[] input = Console.ReadLine().Split(' ');
for (int i = 0; i < n; i++) {
a[i] = int.Parse(input[i]);
}
bool judge =... | [["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 147], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], [... | 8 | 195 |
using System;
using System.Linq;
class C {
static void Main() => Console.WriteLine(
string.Join("\n", new int [int.Parse(Console.ReadLine())]
.Select(_ => Console.ReadLine())
.GroupBy(x => x)
.GroupBy(g => g.Count(), g => g.Key... | using System;
using System.Linq;
class C {
static void Main() => Console.WriteLine(
string.Join("\n", new int [int.Parse(Console.ReadLine())]
.Select(_ => Console.ReadLine())
.GroupBy(x => x)
.GroupBy(g => g.Count(), g => g.Key... | [["+", 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, 28, 0, 218, 54, 219, 0, 220, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 0, 221], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 8, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 96 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class B {
static void Main() {
int[] intRecord =
Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray();
var N = intRecord[0];
var M = intRecord[1];
var answer = string.Empty;
if (N >= ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class B {
static void Main() {
int[] intRecord =
Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToArray();
var N = intRecord[0];
var M = intRecord[1];
var answer = string.Empty;
if (N >= ... | [["+", 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], ["-", 0, 57, 75, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 12, 22]] | 8 | 162 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212,... | 8 | 180 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace C {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 1... | 8 | 180 |
using System;
class C {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int c = 0;
int[] Ar = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
for (int i = 0; i < Ar.Length; i++) {
if (Ar[i] <= Ar[0])
c++;
}
Console.WriteLine(c);
}
} | using System;
class C {
public static void Main() {
int N = int.Parse(Console.ReadLine());
int c = 0;
int[] Ar = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
for (int i = 0; i < N; i++) {
if (Ar[i] <= Ar[0]) {
c++;
Ar[0] = Ar[i];
}
}
Console.WriteLin... | [["-", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22],... | 8 | 101 |
using System;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] P = new long[N];
string[] str = Console.ReadLine().Split(' ');
for (int i = 0; i < P.Length; i++) {
P[i] = long.Parse(str[i]);
}
long ans = 0;
long min = P[0];
for (i... | using System;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] P = new long[N];
string[] str = Console.ReadLine().Split(' ');
for (int i = 0; i < P.Length; i++) {
P[i] = long.Parse(str[i]);
}
long ans = 0;
long min = P[0];
for (i... | [["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-",... | 8 | 183 |
using System;
using System.Linq;
public class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int max = p[0];
int ans = 1;
for (int i = 1; i < n; i++) {
if (p[i] <= max) {
ans++;
} else... | using System;
using System.Linq;
public class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int[] p = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int min = p[0];
int ans = 1;
for (int i = 1; i < n; i++) {
if (p[i] <= min) {
ans++;
}
... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["+", ... | 8 | 119 |
using System;
using System.Linq;
class LowElements {
static void Main(string[] args) {
var input = int.Parse(Console.ReadLine());
var number = Console.ReadLine().Split(' ');
int[] intArray = number.Select(int.Parse).ToArray();
int count = 1;
for (var i = 1; i < input; i++) {
if (intArray... | using System;
using System.Linq;
class LowElements {
static void Main(string[] args) {
var input = int.Parse(Console.ReadLine());
var number = Console.ReadLine().Split(' ');
int[] intArray = number.Select(int.Parse).ToArray();
int count = 1;
int min = intArray[0];
for (var i = 1; i < input... | [["+", 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 | 118 |
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, ' '));
}
... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45]... | 8 | 512 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 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 | 513 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152 {
class C {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] p = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 1;
int ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152 {
class C {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] p = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ans = 1;
int ... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 7, ... | 8 | 146 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Low Elements
int N = int.Parse(Console.ReadLine());
var P = ReadLine();
int ans = 1;
bool isReset = false;
for (int i = 1; i < N; i++) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoder {
class Program {
static void Main(string[] args) {
//[summary]C - Low Elements
int N = int.Parse(Console.ReadLine());
var P = ReadLine();
int ans = 0;
int min = int.MaxValue;
for (int i = 0; i < N; i++) {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 198, 0, 200, 0, 212, 0, ... | 8 | 158 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Console;
namespace CPLib {
class Atria {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
int[] p = ReadLine().Split(' ').Select(int.Parse).ToAr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Math;
using static System.Console;
namespace CPLib {
class Atria {
static void Main(string[] args) {
int n = int.Parse(ReadLine());
int[] p = ReadLine().Split(' ').Select(int.Parse).ToAr... | [["+", 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 | 142 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var n = Console.ReadLine().ToInt();
var p = Input().ToInt();
int wa = 0;
int q = 200000;
for (int i = 0; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public const long Giri = 1000000007;
public static void Main(string[] args) {
var n = Console.ReadLine().ToInt();
var p = Input().ToInt();
int wa = 0;
int min = 999999;
for (int i = 0... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22]... | 8 | 356 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var p = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ans = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC152_C {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var p = Console.ReadLine().Split().Select(int.Parse).ToArray();
var ans = 0;
... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-", 0, 57, 75, 196, 0, 1, 0, 11, 31, 22], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 75, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["-", 0, 1, 0, 11, 12, 204, 206, 207, 0, 70], ["-", 0, 11, 12, 204, 206, 207, 0, 28, 0, 22], ["-"... | 8 | 161 |
using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int n = ReadLineInt();
int[] frontArr = new int[n];
int[] endArr = new int[n];
int[] rtnArr = new int[n];
int cnt = 0;
for (int i = 0... | using System;
using System.Collections.Generic;
using static System.Math;
using System.Linq;
using System.Text;
class DandA {
static void Main(string[] args) {
int n = ReadLineInt();
int[] frontArr = new int[n];
int[] endArr = new int[n];
int[] rtnArr = new int[n];
int cnt = 0;
for (int i = 0... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 75, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 75, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 75, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 75, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 213, 63, 214, 205... | 8 | 1,129 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int reader = int.Parse(ReadLine());
int[,] map = new int[10, 10];
for (int i = 1; i <= reader; i++) {
int tempi = i;
whil... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
public class Hello {
public static void Main() {
int reader = int.Parse(ReadLine());
int[,] map = new int[10, 10];
for (int i = 1; i <= reader; i++) {
int tempi = i;
whil... | [["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70], ["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 22], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 21], ["-", 3, 4, 0, 28, 0, 204, 206, 207, 0, 73], ["-", 8,... | 8 | 198 |
using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var d = new Dictionary<string, int>();
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 1; i <= n; i++) {
var its = i.ToString();
var k = "" + its[0] + its[its.Length - 1];
if (d.C... | using System.Collections.Generic;
using System;
public class Hello {
public static void Main() {
var d = new Dictionary<string, int>();
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 1; i <= n; i++) {
var its = i.ToString();
var k = "" + its[0] + its[its.Length - 1];
if (d.C... | [["+", 0, 210, 8, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 210, 8, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 64, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 213, 3, 4, 0, 28,... | 8 | 223 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_D.Lib_IO;
using static Contest_D.Lib_Minifunc;
public class Contest_D
{
public static void Ma... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using ll=System.Int64;
using static Contest_D.Lib_IO;
using static Contest_D.Lib_Minifunc;
public class Contest_D
{
public static void Ma... | [["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 11, 12, 16, 12, 204, 205, 204, 205, 22], ["+", 12, 16, 12, 204, 205, 204, 206, 207, 0, 70], ["+", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 16, 12, 204, 205, 204, 206, 207, 0, 73], ["+", 0, 11, 12, 16, 12, 204, 206, 207, 0, 70], ["+", 12, 16, 12, 204, 20... | 8 | 2,796 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.IO;
class readint {
public readint(out int i) { i = int.Parse(Console.ReadLine()); }
public readint(out int a, out int b) {
int[] sp = Console.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.IO;
class readint {
public readint(out int i) { i = int.Parse(Console.ReadLine()); }
public readint(out int a, out int b) {
int[] sp = Console.... | [["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 25],... | 8 | 3,740 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_152 {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_152 {
class D {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 204, 205, 22], ["-", 0, 11, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32],... | 8 | 445 |
using System.Linq;
using System.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Numerics;
namespace AtCoder {
class Program {
const int BiggestMod = 1000000007;
public static void Main() {
var args = new int[2];
ar... | using System.Linq;
using System.Text;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Numerics;
namespace AtCoder {
class Program {
const int BiggestMod = 1000000007;
public static void Main() {
var args = new int[2];
ar... | [["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 31, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 0, 131], ["+", 31, 23, 0, 16, 31, 213, 63, 214, 14... | 8 | 129 |
using System;
using System.Linq;
class Program {
public static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int big;
if (a > b) {
big = a;
} else {
big = b;
}
int n = int.Parse(Console.ReadLine());
Console.WriteLine(n / big... | using System;
using System.Linq;
class Program {
public static void Main() {
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int big;
if (a > b) {
big = a;
} else {
big = b;
}
int n = int.Parse(Console.ReadLine());
if (n % big == 0)
C... | [["+", 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 | 95 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
static class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
int N = GetInt(... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
static class Program {
static void Main() {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
int N = GetInt(... | [["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 195, 54, 55, 0, 220, 39, 236, 141, 22], ["+", 0, 195, 54, 55, 0, 220, 39, 236, 141, 22], ["-", 0, 213, 63, 214, 205,... | 8 | 1,214 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using static util;
using P = pair<int, int>;
class Program {
static void Main(string[] args) {
var sw =
new Stream... | [["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 214, 205, 22], ["+", 0, 230, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 230, 3, 4, 0, 28, 0, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 1... | 8 | 2,303 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_155 {
class C {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.ABC_155 {
class C {
static void Main(string[] args) {
var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush =
... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213,... | 8 | 456 |
using Complib.Generic;
using CompLib.Util;
using System;
using System.Collections.Generic;
public class Program {
long N;
long K;
long[] A;
List<long> plus, minus;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
K = sc.NextLong();
A = sc.LongArray();
plus = new List<long>... | using Complib.Generic;
using CompLib.Util;
using System;
using System.Collections.Generic;
public class Program {
long N;
long K;
long[] A;
List<long> plus, minus;
public void Solve() {
var sc = new Scanner();
N = sc.NextInt();
K = sc.NextLong();
A = sc.LongArray();
plus = new List<long>... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 52, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 17, 33], ["+", 8, 196, 0, 52, 15, 16, 31, 16, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17,... | 8 | 891 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using System.Text;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var n = LnStr();
var N = n.Length;
var price = new int[N];
for (int i = 0; i < N; i++) {
price[i] = ... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using System.Text;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var n = LnStr();
var N = n.Length;
var price = new int[N];
for (int i = 0; i < N; i++) {
price[i] = ... | [["+", 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], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204... | 8 | 1,063 |
using Yorukatsu025.Questions;
using Yorukatsu025.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu025.Questions {
/// <summary>
/// ABC155 E
/// </summary>
public class QuestionF : AtCoderQuestionBase {
public override IEn... | using Yorukatsu025.Questions;
using Yorukatsu025.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Yorukatsu025.Questions {
/// <summary>
/// ABC155 E
/// </summary>
public class QuestionF : AtCoderQuestionBase {
public override IEn... | [["-", 64, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 57, 75, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 75, 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,... | 8 | 617 |
using System;
public class a {
static void Main() {
var s = Console.ReadLine().Split();
var t = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var u = Console.ReadLine();
if (s[0] == u[0].ToString()) {
t[0] -= 1;
} else {
t[1] -= 1;
}
Console.WriteLine("{0} {1}", t[0... | using System;
public class a {
static void Main() {
var s = Console.ReadLine().Split();
var t = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var u = Console.ReadLine();
if (s[0] == u) {
t[0] -= 1;
} else {
t[1] -= 1;
}
Console.WriteLine("{0} {1}", t[0], t[1]);
}
... | [["-", 12, 213, 63, 214, 205, 204, 206, 207, 0, 70], ["-", 63, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["-", 12, 213, 63, 214, 205, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["-", 0, 57, 15, 16, 12, 213, 3, 4, 0, 24], ["-", 8, 201, 0, 195, 8... | 8 | 113 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var r2 = ReadSplit();
var S = r1[0];
var T = r1[1];
var A = ... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var r1 = ReadSplit();
var r2 = ReadSplit();
var S = r1[0];
var T = r1[1];
var A = ... | [["+", 31, 16, 31, 213, 63, 214, 205, 23, 0, 24], ["+", 31, 16, 31, 213, 63, 214, 205, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 31, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17... | 8 | 269 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A___Remaining_Balls {
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string s = input1[0];
string t = input1[1];
int[] inp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A___Remaining_Balls {
class Program {
static void Main(string[] args) {
string[] input1 = Console.ReadLine().Split(' ');
string s = input1[0];
string t = input1[1];
int[] inp... | [["-", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 212, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 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, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22... | 8 | 159 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CF {
class Program {
static void Main(string[] args) {
// var c = Console.ReadLine().Split().Select(int.Parse).ToList();
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
var br = 0;
f... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CF {
class Program {
static void Main(string[] args) {
// var c = Console.ReadLine().Split().Select(int.Parse).ToList();
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
var br = 0;
f... | [["+", 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 | 122 |
using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC150B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
// namespaceの値をコンテスト名にして運用
namespace ABC150B {
class Input {
/// <summary>
/// 1行の入力を取得する
/// </summary>
/// <returns>文字列</returns>
public string String() { return Console.ReadLine(); }
/// <summary>
/// 複数行の入力を取得
/// </summary>
/// ... | [["-", 0, 57, 15, 16, 31, 16, 12, 252, 0, 253], ["+", 0, 57, 15, 16, 31, 16, 12, 252, 0, 253], ["-", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253], ["+", 0, 57, 15, 16, 12, 16, 12, 252, 0, 253], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 252, 0, 104... | 8 | 921 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.