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 | change_count int64 0 100 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC123C {
class Program {
static void Main(string[] args) {
long N = ReadLong;
long[] limit = new long[5];
for (int i = 0; i < 5; i++) {
limit[i... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC123C {
class Program {
static void Main(string[] args) {
long N = ReadLong;
long[] limit = new long[5];
for (int i = 0; i < 5; i++) {
limit[i... | [["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 0, 131], ["+", 0, 16, 31, 74, 51, 213, 63, 214, 141, 22], ["+", 0, 16, 31, 74, 51, 213, 3, 4, ... | 8 | 587 | 13 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var A ... | [["-", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 31, 22], ... | 8 | 201 | 20 |
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 C {
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 C {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 22... | 8 | 734 | 11 |
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... | [["+", 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 | 259 | 24 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class26 {
static void Main() {
long N = long.Parse(Console.ReadLine());
var M = new long[5];
M[0] = long.Parse(Console.ReadLine()); // A
M[1] = long.Parse... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp15 {
class Class26 {
static void Main() {
long N = long.Parse(Console.ReadLine());
var M = new long[5];
M[0] = long.Parse(Console.ReadLine()); // A
M[1] = long.Parse... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 31, 203], ["+", 0, 28, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 0,... | 8 | 170 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
long N = IO.ReadLineToLong();
long[] str = new long[5];
for (int i = 0; i < 5; i++) {
str[i]... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace AtCoder {
class Program {
static void Main() {
//ここから
long N = IO.ReadLineToLong();
long[] str = new long[5];
for (int i = 0; i < 5; i++) {
str[i]... | [["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 24], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 109], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 12, 20... | 8 | 644 | 19 |
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, 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, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 74, ... | 8 | 456 | 25 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadLong();
var X = sc.ReadLongArray(5);
var min = X.Min();
var x = (N + 1) / min;
if (x == 0)
x = 1;
var ans = 5 + x - 1;
Console.WriteLine(ans);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
var N = sc.ReadLong();
var X = sc.ReadLongArray(5);
var min = X.Min();
var x = N / min + (N % min > 0 ? 1 : 0);
if (x == 0)
x = 1;
var ans = 5 + x - 1;
Console.Writ... | [["-", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 85], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 22]... | 8 | 1,713 | 14 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["+", 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], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 213, 63, 2... | 8 | 502 | 32 |
using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] t = new long[5];
for (var i = 0; i < 5; i++)... | using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long[] t = new long[5];
for (var i = 0; i < 5; i++)... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 212, 0, 16, 12, 23, 0, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 12, 16, 17, 85... | 8 | 137 | 11 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Program {
public class ABC123C {
static public void Main(string[] args) {
var N = NextLong;
var param = NextLongArray(5);
var mini = param.Min();
Console.WriteLine(N / mini + 5);
}
static class Conso... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Program {
public class ABC123C {
static public void Main(string[] args) {
var N = NextLong;
var param = NextLongArray(5);
var mini = param.Min();
Console.WriteLine(N / mini - (N % mini == 0 ? 1 : 0) + 5);... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 22], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 12, 203], ... | 8 | 697 | 12 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.ReadLine());
long B = long.Parse(Console.ReadLine());
long C = long.Parse(Con... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp2 {
public class Program {
public static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.ReadLine());
long B = long.Parse(Console.ReadLine());
long C = long.Parse(Con... | [["+", 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 | 240 | 20 |
using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextLong();
var A = sc.nextLong();
var B = sc.nextLong();
var C = sc.nextLong();
var D = sc.nextLong();
var E = sc.nex... | using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
class Solver {
Scanner sc = new Scanner();
public void Solve() {
var N = sc.nextLong();
var A = sc.nextLong();
var B = sc.nextLong();
var C = sc.nextLong();
var D = sc.nextLong();
var E = sc.nex... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 31, 203], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["... | 8 | 507 | 11 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var cities = new int[5];
var X = long.MaxValue;
for (int i = 0; i < cities.Length; i++) {
cities[i] = int.Parse(Console.ReadLine());
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var cities = new long[5];
var X = long.MaxValue;
for (int i = 0; i < cities.Length; i++) {
cities[i] = long.Parse(Console.ReadLine());
... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 212, 0, 16, 31, 213,... | 8 | 132 | 18 |
using System;
using System.Collections.Generic;
namespace abc123_c {
class Program {
static void Main(string[] args) {
var n = CIn.ReadLong();
var l = CIn.ReadLongArray(5);
Array.Sort(l);
Console.WriteLine(Math.Ceiling((double)n / l[0]) + 4);
}
}
class CIn {
private static readonly Queue<strin... | using System;
using System.Collections.Generic;
namespace abc123_c {
class Program {
static void Main(string[] args) {
var n = CIn.ReadLong();
var l = CIn.ReadLongArray(5);
Array.Sort(l);
Console.WriteLine((n - 1) / l[0] + 5);
}
}
class CIn {
private static readonly Queue<string> fieldBuffer =... | [["-", 0, 28, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 16, 31, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["... | 8 | 391 | 12 |
using System;
namespace algorithm {
class Program {
static void Main(string[] args) {
double n = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long c = long.Parse(Console.ReadLine());
long d = long.Parse(Console.ReadLine());
... | using System;
namespace algorithm {
class Program {
static void Main(string[] args) {
double n = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long c = long.Parse(Console.ReadLine());
long d = long.Parse(Console.ReadLine());
... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8,... | 8 | 169 | 33 |
namespace ABC123_C {
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
public class Program {
static void Main(string[] args) {
var n = ReadInput();
var vehicles = ReadLinesAslong(5).ToList();
WriteLine(Solve(n, vehicles));
}
public static long Solve(lo... | namespace ABC123_C {
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
public class Program {
static void Main(string[] args) {
var n = ReadInput();
var vehicles = ReadLinesAslong(5).ToList();
WriteLine(Solve(n, vehicles));
}
public static long Solve(lo... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 24], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 0, 25], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 205, 22], ["+", 0, 212, 0, 74, 51, 213, 63, 214, 0... | 8 | 249 | 16 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
//
static void Main(string[] args) {
List<long> Ninzu = new List<long>();
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
//
static void Main(string[] args) {
List<long> Ninzu = new List<long>();
long N = long.Parse(Console.ReadLine());
long A = long.Parse(Console.Read... | [["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 39, 199], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 25], ["+", 63, 214, 205, 23, 0, 74, 51, 23, 0, 24], ["+", 63, 214, 205, 23, 0, 74, 51, 23, 0, 25], ["+", 0, 28, 0, 213, 63, 214, 205, ... | 8 | 219 | 11 |
using System;
using System.Linq;
namespace C___Five_Transportations {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var moveTimes = new int[5];
moveTimes[0] = int.Parse(Console.ReadLine());
moveTimes[1] = int.Parse(Console.ReadLine());
moveTimes[2] = in... | using System;
using System.Linq;
namespace C___Five_Transportations {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var moveTimes = new long[5];
moveTimes[0] = long.Parse(Console.ReadLine());
moveTimes[1] = long.Parse(Console.ReadLine());
moveTimes[2] ... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]] | 8 | 153 | 14 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] T = new long[5];
long Min = long.MaxValue;
for (int i = 0; i < 5; i++) {
T[i] = long.Parse(Console.ReadLine());
if (T[i] < Min) {
Min = T[i];
... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] T = new long[5];
long Min = long.MaxValue;
for (int i = 0; i < 5; i++) {
T[i] = long.Parse(Console.ReadLine());
if (T[i] < Min) {
Min = T[i];
... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 203], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 212, 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], ["+", 0, 212, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72],... | 8 | 124 | 8 |
using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
List<long> list = new List<long>();
for (var i = 0; i < 5; i++) {
list.Add(long.Parse(Console.ReadLine()));
}
if (N <= list.Min()) {
... | using System;
using System.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var N = decimal.Parse(Console.ReadLine());
List<decimal> list = new List<decimal>();
for (var i = 0; i < 5; i++) {
list.Add(decimal.Parse(Console.ReadLine()));
}
if (N <= li... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, ... | 8 | 127 | 15 |
using System;
namespace AtCoder123C {
class Program {
static void Main(string[] args) {
decimal N = decimal.Parse(Console.ReadLine());
decimal[] MaxAvailable = new decimal[5];
decimal sum = 0;
decimal min = 1000000000000000;
for (int i = 0; i < 5; i++) {
MaxAvailable[i] = decimal.Parse(Cons... | using System;
namespace AtCoder123C {
class Program {
static void Main(string[] args) {
decimal N = decimal.Parse(Console.ReadLine());
decimal[] MaxAvailable = new decimal[5];
decimal sum = 0;
decimal min = 1000000000000000;
for (int i = 0; i < 5; i++) {
MaxAvailable[i] = decimal.Parse(Cons... | [["+", 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 | 127 | 24 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Myon {
static void Main(string[] args) { var myon = new Myon(); }
public Myon() {
long N = long.Parse(Console.ReadLine());
long[] size = new long[5];
for (int i = 0; i < 5; i++) {
size[i] = long.Pa... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Myon {
static void Main(string[] args) { var myon = new Myon(); }
public Myon() {
long N = long.Parse(Console.ReadLine());
long[] size = new long[5];
for (int i = 0; i < 5; i++) {
size[i] = long.Pa... | [["-", 8, 196, 0, 57, 64, 1, 0, 223, 0, 29], ["+", 0, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 203]] | 8 | 430 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
class Program {
static void Main(string[] args) {
var N... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;
using static AtCoderTemplate.MyExtensions;
using static AtCoderTemplate.MyInputOutputs;
using static AtCoderTemplate.MyNumericFunctions;
namespace AtCoderTemplate {
class Program {
static void Main(string[] args) {
var N... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 85], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+... | 8 | 1,021 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long c = long.Parse(Consol... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class MainClass {
public static void Main(string[] args) {
long n = long.Parse(Console.ReadLine());
long a = long.Parse(Console.ReadLine());
long b = long.Parse(Console.ReadLine());
long c = long.Parse(Consol... | [["-", 0, 7, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["-", 0, ... | 8 | 382 | 32 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC123C {
class MainClass {
static int[] s;
static int[] n;
public static void Main(string[] args) {
var lst = new List<long>();
long n = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
long a = long.P... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ABC123C {
class MainClass {
static int[] s;
static int[] n;
public static void Main(string[] args) {
var lst = new List<long>();
long n = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
long a = long.P... | [["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 24], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 205, 22], ["+", 15, 16, 31, 16, 12, 213, 63, 214, 0, 131], ["+", 15, 16, 31, 16, 12, 213, 63,... | 8 | 170 | 29 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
double n = double.Parse(input);
double[] capacity = new double[5];
input = Console.ReadLine();
capacity[0] = double.Parse(input);
input = Con... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
long n = long.Parse(input);
long[] capacity = new long[5];
input = Console.ReadLine();
capacity[0] = long.Parse(input);
input = Console.ReadL... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ... | 8 | 244 | 33 |
// Undone
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections;
public class Program {
public static void Main() {
double N = ReadDouble();
double[] a = new double[5];
for (int i = 0; i < a.Length; i++) {
double d = ReadDouble();
a[i] = (d < N) ? Math.Cei... | // Undone
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections;
public class Program {
public static void Main() {
double N = ReadDouble();
double[] a = new double[5];
for (int i = 0; i < a.Length; i++) {
double d = ReadDouble();
a[i] = (d < N) ? Math.Cei... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["-", 75, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+... | 8 | 526 | 12 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc123c {
class Program {
static void Main(string[] args) {
long mina = 10000000000000000;
long N = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
long a = l... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc123c {
class Program {
static void Main(string[] args) {
long mina = 10000000000000000;
long N = long.Parse(Console.ReadLine());
for (int i = 0; i < 5; i++) {
long a = l... | [["+", 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], ["+", 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, 79... | 8 | 122 | 23 |
using System;
using System.IO;
namespace ABC123C {
class Program {
static void Main(string[] args) {
if (args.Length > 0) {
Console.SetIn(new StreamReader(args[0]));
}
new Program().Solve();
}
void Solve() {
// 一番狭いところだけ考えればいいのかな
var N = long.Parse(Console.ReadLine());
var capacit... | using System;
using System.IO;
namespace ABC123C {
class Program {
static void Main(string[] args) {
if (args.Length > 0) {
Console.SetIn(new StreamReader(args[0]));
}
new Program().Solve();
}
void Solve() {
// 一番狭いところだけ考えればいいのかな
var N = long.Parse(Console.ReadLine());
var capacit... | [["+", 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 | 146 | 13 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg123C {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var nums = new long[5];
nums[0] = long.Parse(Console.ReadLine());
nums[1] =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg123C {
class Program {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var nums = new long[5];
nums[0] = long.Parse(Console.ReadLine());
nums[1] =... | [["+", 0, 41, 75, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 17, 109], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 12, 22], ["+", 0, 212, 0, 41, 75, 41, 15, 16, 17, 60], ["+", 0, 212, 0, 41, 75, 41, 15, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 41, 75, 41, 0, 101], ["+", 0, 200, 0, 212, 0, 41, 75, 41, 0, 1... | 8 | 184 | 12 |
using System;
namespace AtCoder.ABC._123 {
class c {
static void Main(string[] args) {
var line = Console.ReadLine().Trim();
var N = long.Parse(line);
long[] time = new long[5];
for (var i = 0; i < 5; i++) {
line = Console.ReadLine().Trim();
time[i] = long.Parse(line);
... | using System;
namespace AtCoder.ABC._123 {
class c {
static void Main(string[] args) {
var line = Console.ReadLine().Trim();
var N = long.Parse(line);
long[] time = new long[5];
for (var i = 0; i < 5; i++) {
line = Console.ReadLine().Trim();
time[i] = long.Parse(line);
... | [["+", 0, 28, 0, 213, 63, 214, 205, 23, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 24], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 39, 199], ["+", 0, 213, 63, 214, 205, 23, 0, 74, 0, 25], ["+", 63, 214, 205, 23, 0, 74, 51, 23, 0, 24], ["+", 63, 214, 205, 23, 0, 74, 51, 23, 0, 25], ["+", 0, 28, 0, 213, 63, 214, 205, ... | 8 | 161 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static int X, Y, Z, K;
static long[] A, B, C;
static void Main() {
(X, Y, Z, K) = ReadStream<int, int, int, int>();
A = RLongs();
B = RLongs();
C ... | using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Math;
class MainClass : Scanner {
static int X, Y, Z, K;
static long[] A, B, C;
static void Main() {
(X, Y, Z, K) = ReadStream<int, int, int, int>();
A = RLongs();
B = RLongs();
C ... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0,... | 8 | 1,408 | 18 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Console.Out.Flush();
}
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 1,930 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] b = Console.ReadLine().Split().Select(long.Pars... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
long[] a = Console.ReadLine().Split().Select(long.Parse).ToArray();
long[] b = Console.ReadLine().Split().Select(long.Pars... | [["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["+", 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... | 8 | 427 | 29 |
using System.Collections.Generic;
using System;
public class PriorityQueue<T>
where T : IComparable {
private IComparer<T> _comparer = null;
private int _type = 0;
private T[] _heap;
private int _sz = 0;
private int _count = 0;
/// <summary>
/// Priority Queue with custom comparer
/// </summary>
... | using System.Collections.Generic;
using System;
public class PriorityQueue<T>
where T : IComparable {
private IComparer<T> _comparer = null;
private int _type = 0;
private T[] _heap;
private int _sz = 0;
private int _count = 0;
/// <summary>
/// Priority Queue with custom comparer
/// </summary>
... | [["+", 15, 16, 31, 16, 31, 16, 31, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 16, 31, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 16, 31, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 1... | 8 | 1,326 | 24 |
//#define C
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
#if false
var N = int.Parse(ReadLine());
var a = new int[N];
var b = new int[N];
var c = new int[N];
for (int i = 0; i < N; i++)
... | //#define C
using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class Program {
static void Main() {
#if false
var N = int.Parse(ReadLine());
var a = new int[N];
var b = new int[N];
var c = new int[N];
for (int i = 0; i < N; i++)
... | [["+", 0, 28, 0, 16, 31, 16, 31, 214, 205, 22], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 0, 131], ["+", 0, 28, 0, 16, 31, 16, 31, 214, 141, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 8, 196, 0, 197, 0, 198, 39, 21... | 8 | 464 | 26 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg123D {
class Program {
static void Main(string[] args) {
var read =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var X = read[0];
var Y = read[1];... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beg123D {
class Program {
static void Main(string[] args) {
var read =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var X = read[0];
var Y = read[1];... | [["+", 0, 7, 15, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 7, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 21], ["+", 15, 16, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 7, 15, 16, 12, 213, 3, 4, 0, 25]] | 8 | 361 | 7 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] n = Input.ScanIntArray();
Array.Sort(n);
if ((n[0] * n[0] + n[1] * n[1]) == (n[2] * n[2]))
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
}
stati... | using System;
using System.Linq;
using System.Collections.Generic;
namespace program {
class Program {
static void Main() {
int[] n = Input.ScanIntArray();
Array.Sort(n);
if (n[0] == n[1] && n[1] == n[2])
Console.WriteLine("Yes");
else
Console.WriteLine("No");
}
}
static class Input {
... | [["-", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["-", 31, 23, 0, 16, 31, 16, 12, 204, 205, 22], ["-", 0, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["-", 0, 57, 15, 16, 31, 23, 0, 16,... | 8 | 634 | 18 |
using System;
namespace CSsample {
class Program {
static void Main(string[] args) {
Console.WriteLine("Hello World!");
string input = Console.ReadLine();
var x = input.Split(' ');
int A = int.Parse(x[0]);
int B = int.Parse(x[1]);
int C = int.Parse(x[2]);
if (A == B && B == C) {
Co... | using System;
namespace CSsample {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
var x = input.Split(' ');
int A = int.Parse(x[0]);
int B = int.Parse(x[1]);
int C = int.Parse(x[2]);
if (A == B && B == C) {
Console.WriteLine("Yes");
} else {
... | [["-", 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, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201... | 8 | 124 | 9 |
using System;
using System.Linq;
class B {
static void Main() {
Console.ReadLine();
var s = Console.ReadLine();
Console.WriteLine(s.Count(x => x == 'R') > s.Length / 2);
}
}
| using System;
using System.Linq;
class B {
static void Main() {
Console.ReadLine();
var s = Console.ReadLine();
Console.WriteLine(s.Count(x => x == 'R') > s.Length / 2 ? "Yes" : "No");
}
}
| [["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 101], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 41, 0, 102], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]] | 8 | 58 | 8 |
using System;
namespace CSsample {
class Bmondai {
static void Main(string[] args) {
string input = Console.ReadLine();
int R = 0;
int B = 0;
for (int i = 0; i < input.Length; i++) {
if (input[i] == 'R') {
R++;
} else if (input[i] == 'B') {
B++;
}
}
if (R > B)... | using System;
namespace CSsample {
class Bmondai {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
string input = Console.ReadLine();
int R = 0;
int B = 0;
for (int i = 0; i < input.Length; i++) {
if (input[i] == 'R') {
R++;
} else if (input[i] == '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, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, ... | 8 | 121 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.AGC_031 {
class B {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int n = Re... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;
namespace AtTest.AGC_031 {
class B {
static void Main(string[] args) {
Method(args);
ReadLine();
}
static void Method(string[] args) {
int n = Re... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]... | 8 | 451 | 31 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] A = new long[N];
for (var i = 0; i < N; i++) {
A[i] = long.Parse(Console.ReadLine());
}
long[] B = new long[200001];
long[] D = new long[20000... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long[] A = new long[N];
for (var i = 0; i < N; i++) {
A[i] = long.Parse(Console.ReadLine());
}
long[] B = new long[200001];
long[] D = new long[20000... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 75, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["... | 8 | 260 | 15 |
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class K {
static void Main() {
var I = ReadLine().Split().Select(int.Parse).ToArray();
int N = I[0], A = I[1], B = I[2];
if (C(A ^ B) % 2 < 1)
WriteLine("NO");
else
WriteLine("YES\n" + string.Join(" ", G(N, A... | using System.Collections.Generic;
using System.Linq;
using static System.Console;
class K {
static void Main() {
var I = ReadLine().Split().Select(int.Parse).ToArray();
int N = I[0], A = I[1], B = I[2];
if (C(A ^ B) % 2 < 1)
WriteLine("NO");
else
WriteLine("YES\n" + string.Join(" ", G(N, A... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 11, 12, 41, 15, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 140], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 22... | 8 | 459 | 24 |
using System.Collections.Generic;
using System.Linq;
using static System.Console;
class K {
static void Main() {
var I = ReadLine().Split().Select(int.Parse).ToArray();
int N = I[0], A = I[1], B = I[2];
if (C(A ^ B) % 2 < 1) {
WriteLine("NO");
return;
}
WriteLine("YES");
WriteLine(... | using System.Collections.Generic;
using System.Linq;
using static System.Console;
class K {
static void Main() {
var I = ReadLine().Split().Select(int.Parse).ToArray();
int N = I[0], A = I[1], B = I[2];
if (C(A ^ B) % 2 < 1) {
WriteLine("NO");
return;
}
WriteLine("YES");
WriteLine(... | [["-", 0, 200, 0, 212, 0, 16, 12, 241, 0, 68], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 24], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 212, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 16, 12, 23, 0, 25], ["-", 12, 213, 3, 4, 0, 28, 0, 223, 0, 68], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+"... | 8 | 465 | 12 |
using System;
class c {
static void Main() {
var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var b = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Console.WriteLine(a[0] * a[1] - b[0] * b[1]);
}
}
| using System;
class c {
static void Main() {
var a = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var b = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Console.WriteLine((a[0] - b[0]) * (a[1] - b[1]));
}
}
| [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["-", 0, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["-", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ... | 8 | 83 | 14 |
using System;
class Plogram {
static void Main() {
string[] ARRAY = Console.ReadLine().Split(' ');
string[] array = Console.ReadLine().Split(' ');
int H = int.Parse(ARRAY[0]);
int W = int.Parse(ARRAY[1]);
int h = int.Parse(array[0]);
int w = int.Parse(array[1]);
Console.WriteLine(H * W ... | using System;
class Plogram {
static void Main() {
string[] ARRAY = Console.ReadLine().Split(' ');
string[] array = Console.ReadLine().Split(' ');
int H = int.Parse(ARRAY[0]);
int W = int.Parse(ARRAY[1]);
int h = int.Parse(array[0]);
int w = int.Parse(array[1]);
Console.WriteLine((H - h... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 3, 4, 0, 28, ... | 8 | 115 | 10 |
using System;
class Plogram {
static void Main() {
string[] ARRAY = Console.ReadLine().Split(' ');
string[] array = Console.ReadLine().Split(' ');
int H = int.Parse(ARRAY[0]);
int W = int.Parse(ARRAY[1]);
int h = int.Parse(array[0]);
int w = int.Parse(array[1]);
Console.WriteLine(H * W ... | using System;
class Plogram {
static void Main() {
string[] ARRAY = Console.ReadLine().Split(' ');
string[] array = Console.ReadLine().Split(' ');
int H = int.Parse(ARRAY[0]);
int W = int.Parse(ARRAY[1]);
int h = int.Parse(array[0]);
int w = int.Parse(array[1]);
Console.WriteLine(H * W ... | [["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 17, 48], ["... | 8 | 115 | 10 |
using System;
class Program {
static void Main(string[] args) {
var value_1 = Console.ReadLine().Split(' ');
var value_2 = Console.ReadLine().Split(' ');
var H = int.Parse(value_1[0]);
var W = int.Parse(value_1[1]);
var h = int.Parse(value_2[0]);
var w = int.Parse(value_2[1]);
Console.Wr... | using System;
class Program {
static void Main(string[] args) {
var value_1 = Console.ReadLine().Split(' ');
var value_2 = Console.ReadLine().Split(' ');
var H = int.Parse(value_1[0]);
var W = int.Parse(value_1[1]);
var h = int.Parse(value_2[0]);
var w = int.Parse(value_2[1]);
Console.Wr... | [["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 1... | 8 | 119 | 10 |
using System;
class Program {
static void Main(string[] args) {
//入力
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int H = int.Parse(input1[0]);
int W = int.Parse(input1[1]);
int h = int.Parse(input2[0]);
int w = int.Parse(input2[1]);
... | using System;
class Program {
static void Main(string[] args) {
//入力
string[] input1 = Console.ReadLine().Split(' ');
string[] input2 = Console.ReadLine().Split(' ');
int H = int.Parse(input1[0]);
int W = int.Parse(input1[1]);
int h = int.Parse(input2[0]);
int w = int.Parse(input2[1]);
... | [["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 33], ["+", 3, 4, 0, 28, ... | 8 | 121 | 8 |
using System;
using System.IO;
class Program {
static void Main(string[] args) {
var arr = Console.ReadLine().Split();
var N = int.Parse(arr[0]);
var M = int.Parse(arr[1]);
var C = int.Parse(arr[2]);
var B = Console.ReadLine().Split();
var answer = 0;
for (int i = 1; i <= N; i++) {
... | using System;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var arr = Console.ReadLine().Split();
var N = int.Parse(arr[0]);
var M = int.Parse(arr[1]);
var C = int.Parse(arr[2]);
var B = Console.ReadLine().Split().Select(int.Parse).ToArray();
var answer... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 205, 213, 63, 214, 205... | 8 | 216 | 4 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var imp = Console.ReadLine().Split(' ');
int N = int.Parse(imp[0]); //コードの個数
int M = int.Parse(imp[1]); //コードの項数
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var imp = Console.ReadLine().Split(' ');
int N = int.Parse(imp[0]); //コードの個数
int M = int.Parse(imp[1]); //コードの項数
... | [["+", 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], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 1, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]] | 8 | 226 | 7 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace cswork {
class Program {
class Scanner {
string[] s;
int i;
char[] cs = new char[] { ' ' };
public Scanner() {
s = new string[0];
i = 0;
}
public string next() {
if (i < s.Leng... | [["+", 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, 241, 0, 111], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 205, 22], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 24... | 8 | 822 | 22 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args) {
var nm = Input3();
var n = nm[0];
var m = nm[1];
var ab = new Diction... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args) {
var nm = Input3();
var n = nm[0];
var m = nm[1];
var ab = new Diction... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 20... | 8 | 496 | 12 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace _121c {
class Program {
static void Main(string[] args) {
int[] read = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
Dictionary<long, long> AB = new Dictionary<long, long>();
long[] readLong = new long[2];
for (in... | using System;
using System.Linq;
using System.Collections.Generic;
namespace _121c {
class Program {
static void Main(string[] args) {
long[] read = Array.ConvertAll(Console.ReadLine().Split(), long.Parse);
List<Tuple<long, long>> AB = new List<Tuple<long, long>>();
long[] readLong = new long[2];
for... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, ... | 8 | 233 | 37 |
using System;
using System.Collections.Generic;
namespace AtCoderBegginerContest121 {
class Program {
static void Main(string[] args) {
var inptNM = Console.ReadLine().Split(' ');
int N = int.Parse(inptNM[0]);
int M = int.Parse(inptNM[1]);
List<EneDri> EneDriList = new List<EneDri> {};
for (int... | using System;
using System.Collections.Generic;
namespace AtCoderBegginerContest121 {
class Program {
static void Main(string[] args) {
var inptNM = Console.ReadLine().Split(' ');
int N = int.Parse(inptNM[0]);
int M = int.Parse(inptNM[1]);
List<EneDri> EneDriList = new List<EneDri> {};
for (int... | [["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 0, 213, 3, 4, 0, 28, 141, 322, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 141, 322, 0, 102], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 25], ["+",... | 8 | 289 | 23 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CompetitiveProgramming {
class Program {
static void Main(string[] args) {
var AB_Array = new List<TwoInt>();
string[] n_m = Console.ReadLine().Split(' ');
int n = int.Parse(n_m[0]);
int m = int.Parse(n_m[1]);
//入力を受け取る... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CompetitiveProgramming {
class Program {
static void Main(string[] args) {
var AB_Array = new List<TwoInt>();
string[] n_m = Console.ReadLine().Split(' ');
int n = int.Parse(n_m[0]);
int m = int.Parse(n_m[1]);
//入力を受け取る... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["-", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210,... | 8 | 392 | 28 |
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, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["+", 39, 236, 237, 238, 0, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 19... | 8 | 688 | 20 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main() {
var nm = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var abArray = new List<int[]>();
for (int i = 0; i < nm[0]; i++) {
abArray.Add(
Console.ReadLine().Split(... | using System;
using System.Collections.Generic;
using System.Linq;
public class Program {
static void Main() {
var nm = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
var abArray = new List<long[]>();
for (int i = 0; i < nm[0]; i++) {
abArray.Add(
Console.ReadLine().Spli... | [["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["+", 0, 230, 39, 236, 237, 238, 0, 224, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74,... | 8 | 253 | 14 |
using System;
using System.Collections.Generic;
using System.Linq;
class Program {
struct Shop {
public int price;
public int num;
public Shop(int price, int num) {
this.price = price;
this.num = num;
}
}
static void Main(string[] args) {
string[] temp = Console.ReadLine().Split('... | using System;
using System.Collections.Generic;
using System.Linq;
class Program {
struct Shop {
public double price;
public double num;
public Shop(double price, double num) {
this.price = price;
this.num = num;
}
}
static void Main(string[] args) {
string[] temp = Console.ReadLi... | [["-", 0, 270, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 270, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 263, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 263, 54, 55, 0, 220, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 6... | 8 | 294 | 26 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
}
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0... | 8 | 595 | 20 |
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class V {
public int p;
public int m;
}
class Program {
public static void Main() {
int N, M;
string[] strs = Console.ReadLine().Split(' ');
N = int.Parse(strs[0]);
M = int.Parse(strs[1]);
List<V> L ... | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Program {
class V {
public long p;
public long m;
}
public static void Main() {
long N, M;
string[] strs = Console.ReadLine().Split(' ');
N = long.Parse(strs[0]);
M = long.Parse(strs[1]);
... | [["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 0, 208, 0, 235, 8, 201, 0, 45], ["+", 0, 208, 0, 235, 8, 201, 0, 235, 0, 269], ["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 36, 36, 36, 36, 0, 208, 0, 235, 0, 269], ["-", 36, 36, 36, 36, 0, 208, 0, 23... | 8 | 280 | 48 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = s[0];
int m = s[1];
int[][] ab = new int [n][];
for (int i = 0; i < n; i++) {
ab[i] = Console.ReadLine().Split().Select(int.Parse).ToA... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int n = s[0];
int m = s[1];
int[][] ab = new int [n][];
for (int i = 0; i < n; i++) {
ab[i] = Console.ReadLine().Split().Select(int.Parse).ToA... | [["-", 0, 11, 12, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 11, 12, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 11, 12, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141... | 8 | 256 | 22 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
long cost = 0;
long drinkcnt = 0;
var dic = n... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CSharpSample01 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int N = int.Parse(str[0]);
int M = int.Parse(str[1]);
long cost = 0;
long drinkcnt = 0;
var dic = n... | [["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0... | 8 | 278 | 29 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace CSTest {
class Program {
static void Main(string[] args) {
var strings = Console.ReadLine().Split(' ');
var N = int.Parse(strings[0]);
var M = int.Parse(strings[1]);
var list = new List<Set>();
for (int i = 0; i < N; i++... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CSTest {
class Program {
static void Main(string[] args) {
var strings = Console.ReadLine().Split(' ');
var N = int.Parse(strings[0]);
var M = int.Parse(strings[1]);
var list = new List<Set>();
for (int i = 0; i < N; i++... | [["-", 10, 229, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 10, 229, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 201, 0, 235, 8, ... | 8 | 244 | 14 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC121D {
class Program {
static void Main(string[] args) {
var A = ReadLong - 1;
var B = ReadLong;
long aXor = xorSum(A);
long bXor = xorSum(B);
... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC121D {
class Program {
static void Main(string[] args) {
var A = ReadLong - 1;
if (A < 0)
A = 0;
var B = ReadLong;
long aXor = xorSum(A);... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], ... | 8 | 591 | 10 |
using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramD a = new ProgramD();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | using System;
using System.Numerics;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace debug {
class main {
static void Main(string[] args) {
//問題クラスを展開
ProgramD a = new ProgramD();
a.main(); //実行する
}
}
class ProgramA {
public void main() {
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22... | 8 | 847 | 40 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
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 D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["+", 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, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2... | 8 | 194 | 37 |
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
// {
// ... | [["+", 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, 203], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+"... | 8 | 1,419 | 20 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] n = longa();
var xorlist = new Li... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Hello {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
long[] n = longa();
var xorlist = new Li... | [["-", 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], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+", 0, 57, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 57, 15, 16, 31, 204, 206,... | 8 | 1,871 | 12 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split().Select(long.Parse).ToArray();
Console.WriteLine(Solve(AB[0] - 1) ^ Solve(AB[1]));
}
static long Solve(long n) {
switch (n % 4... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Algorithm {
class Program {
static void Main(string[] args) {
var AB = Console.ReadLine().Split().Select(long.Parse).ToArray();
Console.WriteLine(Solve(AB[0] - 1) ^ Solve(AB[1]));
}
static long Solve(long n) {
if (n < 0)
... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 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, 37, 0, 38],... | 8 | 128 | 9 |
using System;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split();
var a = long.Parse(ab[0]);
var b = long.Parse(ab[1]);
Console.WriteLine(f(a - 1) ^ f(b));
}
static long f(long n) {
var ans = n;
for (int i = 1; i <= n % 4; i++)
ans ^= n - i;
r... | using System;
class Program {
static void Main(string[] args) {
var ab = Console.ReadLine().Split();
var a = long.Parse(ab[0]);
var b = long.Parse(ab[1]);
Console.WriteLine(f(a - 1) ^ f(b));
}
static long f(long n) {
if (n <= 0)
return 0;
var ans = n;
for (int i = 1; i <= n % 4... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 37, 0, 38],... | 8 | 113 | 9 |
using System;
namespace ABC121_D___XOR_World {
class Program {
static void Main(string[] args) {
var AB = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var digit = 1;
long result = 0;
while (AB[1] >= Math.Pow(2, digit + 2)) {
result +=
((countBinary1(AB[1], digit) - co... | using System;
namespace ABC121_D___XOR_World {
class Program {
static void Main(string[] args) {
var AB = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);
var digit = 1;
long result = 0;
while (digit < 1000) {
result +=
((countBinary1(AB[1], digit) - countBinary1(AB[0] - ... | [["-", 8, 196, 0, 52, 15, 16, 31, 204, 205, 22], ["-", 0, 52, 15, 16, 31, 204, 206, 207, 0, 70], ["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 52, 15, 16, 31, 204, 206, 207, 0, 73], ["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20], ["-", 0, 52, 15, 16, 12, 213, 63, 214, 205, 22], ["-", 0, 52, 15, 16, 12, 213, 6... | 8 | 221 | 16 |
using System;
using System.Linq;
using System.Collections.Generic;
class Damondai {
static void Main() {
var ab =
Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray();
var A = ab[0];
var B = ab[1];
Console.WriteLine(Solve(A - 1) ^ Solve(B));
}
static long Solve(long num) {
... | using System;
using System.Linq;
using System.Collections.Generic;
class Damondai {
static void Main() {
var ab =
Console.ReadLine().Split(' ').Select(x => Int64.Parse(x)).ToArray();
var A = ab[0];
var B = ab[1];
var ans = Solve(A - 1) ^ Solve(B);
Console.WriteLine(ans);
}
static long... | [["-", 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, 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, ... | 8 | 156 | 15 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
long[] s = Console.ReadLine().Split().Select(long.Parse).ToArray();
long a = s[0];
long b = s[1];
Console.WriteLine(f(b) ^ f(a - 1));
}
static long f(long x) {
switch (x % 4) {
case 0:
return x;
c... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
long[] s = Console.ReadLine().Split().Select(long.Parse).ToArray();
long a = s[0];
long b = s[1];
Console.WriteLine(f(b) ^ f(a - 1));
}
static long f(long x) {
switch (x % 4) {
case 0:
return x;
c... | [["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 173], ["-", 0, 99, 8, 254, 0, 239, 0, 264, 0, 203], ["+", 0, 99, 8, 254, 0, 239, 0, 265, 0, 162], ["-", 0, 99, 8, 254, 0, 239, 0, 37, 0, 35], ["-", 0, 99, 8, 254, 0, 239, 0, 265, 0, 162], ["-", 0, 99, 8, 254, 0, 239, 0, 265, 0, 102], ["-", 0, 99, 8, 254, 0, 239, 0, 293, 0, 294],... | 8 | 133 | 11 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BC121D {
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BC121D {
class Program {
static void Main(string[] args) {
// 整数の入力
// int a = int.Parse(Console.ReadLine());
// スペース区切りの整数の入力
string[] input = Console.ReadLine().Split(' ');
... | [["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 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, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35],... | 8 | 192 | 11 |
using System;
public class Hello {
static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = long.Parse(line[0]);
var b = long.Parse(line[1]);
getAns(a, b);
}
static void getAns(long a, long b) {
long ans;
if (a % 2 == 0 && b % 2 == 1) {
var c0 = (b - 1 - a)... | using System;
public class Hello {
static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var a = long.Parse(line[0]);
var b = long.Parse(line[1]);
getAns(a, b);
}
static void getAns(long a, long b) {
long ans;
if (a % 2 == 0 && b % 2 == 1) {
var c0 = (b - 1 - a)... | [["-", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 140], ["-", 64, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 33], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 203], ["-", 64, 1, 0, 11, 12, 16, 12, 23, 0, 25], ["+", ... | 8 | 309 | 28 |
using System;
class Program {
static void Main(string[] args) {
var value_1 = Console.ReadLine().Split(' ');
var A = double.Parse(value_1[0]);
var B = double.Parse(value_1[1]);
var C = double.Parse(value_1[2]);
Console.WriteLine(B / A > C ? C : B / A);
}
} | using System;
class Program {
static void Main(string[] args) {
var value_1 = Console.ReadLine().Split(' ');
var A = double.Parse(value_1[0]);
var B = double.Parse(value_1[1]);
var C = double.Parse(value_1[2]);
Console.WriteLine(Math.Floor(B / A) > C ? C : Math.Floor(B / A));
}
} | [["+", 0, 41, 15, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 41, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 41, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 41, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 41, 75, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 41, 75, 213, 63, 214,... | 8 | 90 | 10 |
using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
if (a * c <= b) {
Console.WriteLine(c);
} else {
for (int cnt = 1; cnt <= c; cnt++) {
... | using System;
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
if (a * c <= b) {
Console.WriteLine(c);
} else {
for (int cnt = 1; cnt <= c; cnt++) {
... | [["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199], ["+", 64, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 197,... | 8 | 130 | 9 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderIO {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
int C = int.P... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoderIO {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
int A = int.Parse(str[0]);
int B = int.Parse(str[1]);
int C = int.P... | [["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 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, 19... | 8 | 129 | 8 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string b = System.Console.ReadLine();
char[] c = b.ToCharArray();
int cou = 0;
int coumax = 0;
for (int i ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string b = System.Console.ReadLine();
char[] c = b.ToCharArray();
int cou = 0;
int coumax = 0;
for (int i... | [["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 223, 0, 29], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 64,... | 8 | 170 | 13 |
using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int maxLength = 0;
int length = 0;
var acgt = new[] { 'A', 'C', 'G', 'T' };
foreach (var c in S) {
if (acgt.Contains(c)) {
length++;
} else {
m... | using System;
using System.Linq;
namespace B {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
int maxLength = 0;
int length = 0;
var acgt = new[] { 'A', 'C', 'G', 'T' };
foreach (var c in S) {
if (acgt.Contains(c)) {
length++;
} else {
m... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0... | 8 | 118 | 11 |
using System;
class Program {
static void Main(string[] args) {
string S = string.Empty;
int cnt = 0;
int ans = 0;
S = Console.ReadLine();
foreach (char c in S) {
if (c.ToString() == "A" || c.ToString() == "C" || c.ToString() == "G" ||
c.ToString() == "T") {
cnt++;
}... | using System;
class Program {
static void Main(string[] args) {
string S = string.Empty;
int cnt = 0;
int ans = 0;
S = Console.ReadLine();
foreach (char c in S) {
if (c.ToString() == "A" || c.ToString() == "C" || c.ToString() == "G" ||
c.ToString() == "T") {
cnt++;
}... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 123 | 18 |
using System;
using System.Linq;
using static System.Console;
namespace b {
static class Extensions {
public static int ToInt(this string str) { return int.Parse(str); }
}
class Program {
static bool isATCG(char c) {
return c == 'A' || c == 'T' || c == 'C' || c == 'G';
}
public static void Main(string[]... | using System;
using System.Linq;
using static System.Console;
namespace b {
static class Extensions {
public static int ToInt(this string str) { return int.Parse(str); }
}
class Program {
static bool isATCG(char c) {
return c == 'A' || c == 'T' || c == 'C' || c == 'G';
}
public static void Main(string[]... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 211, 0, 146], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["+... | 8 | 217 | 26 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int count = 0;
int res = 0;
for (int i = 0; i < S.Length; i++) {
if (S[i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5 {
class Program {
static void Main(string[] args) {
string S = Console.ReadLine();
int count = 0;
int res = 0;
S = S + "%";
for (int i = 0;; i++) {
if ... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 11, 12, 16, 12, 5, 0, 222], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 0, 195, 8... | 8 | 152 | 28 |
using System;
namespace AtCoder.ABC._122 {
class b {
static void Main(string[] args) {
var line = Console.ReadLine().Trim();
var S = line.ToCharArray();
var cnt = 0;
var max = 0;
foreach (var c in S) {
if ("ACGT".Contains(c.ToString())) {
++cnt;
} else {
... | using System;
namespace AtCoder.ABC._122 {
class b {
static void Main(string[] args) {
var line = Console.ReadLine().Trim();
var S = line.ToCharArray();
var cnt = 0;
var max = 0;
foreach (var c in S) {
if ("ACGT".Contains(c.ToString())) {
++cnt;
} else {
... | [["+", 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 | 113 | 12 |
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int count = 0;
List<int> max = new List<int>();
for (int cnt = 0; cnt < str.Length; cnt++) {
char s = str[cnt];
if (s == 'A' || s == 'C' || s == 'G' || s == '... | using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
string str = Console.ReadLine();
int count = 0;
List<int> max = new List<int>();
for (int cnt = 0; cnt < str.Length; cnt++) {
char s = str[cnt];
if (s == 'A' || s == 'C' || s == 'G' || s == '... | [["+", 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 | 155 | 17 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var S = ReadLine();
var ans = 0;
var buf = 0;
for (int i = 0; i < S.Length; i++) {
if (S[i] != '... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
namespace AtCoder {
class Program {
static void Main() {
var S = ReadLine();
var ans = 0;
var buf = 0;
for (int i = 0; i < S.Length; i++) {
if (S[i] != '... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 31, 22], [... | 8 | 145 | 10 |
using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
string S;
public void Do() {
cin = new Scanner();
S = cin.nextString();
int ans = 0;
int tmpAns = 0;
for (int i = 0;... | using System;
using System.Collections.Generic;
using System.Linq;
class Procon {
public Procon() {}
static void Main(string[] agrs) { new Procon().Do(); }
Scanner cin;
string S;
public void Do() {
cin = new Scanner();
S = cin.nextString();
int ans = 0;
int tmpAns = 0;
for (int i = 0;... | [["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 21], ["+", 0, 28, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 580 | 7 |
using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string input = ReadLine();
int count = 0;
int currentCount = 0;
bool IsStarted = false;
for (int i ... | using System;
using static System.Console;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program {
static void Main(string[] args) {
string input = ReadLine();
int count = 0;
int currentCount = 0;
bool IsStarted = false;
for (int i ... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 15, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 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], ... | 8 | 333 | 18 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var cnt = 0;
var max = 0;
foreach (var s in S) {
if (s == 'A' || s == 'C' || s ==... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace abc119d {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
var cnt = 0;
var max = 0;
foreach (var s in S) {
if (s == 'A' || s == 'C' || s ==... | [["+", 3, 4, 0, 28, 0, 11, 0, 202, 0, 32], ["+", 0, 28, 0, 11, 12, 41, 15, 23, 0, 24], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 12, 22], ["+", 0, 28, 0, 11, 12, 41, 15, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 11, 12, 41, 0, 101], ["+", 3, 4,... | 8 | 447 | 10 |
using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] Args) {
var chars = new List<char> { 'A', 'T', 'C', 'G' };
var convs = new List<char>(ReadLine().ToCharArray())
.Select(chars.... | using System;
using System.Collections.Generic;
using static System.Console;
using System.Linq;
namespace ConsoleApp2 {
class Program {
static void Main(string[] Args) {
var chars = new List<char> { 'A', 'T', 'C', 'G' };
var convs = new List<char>(ReadLine().ToCharArray())
.Select(chars.... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0... | 8 | 165 | 11 |
using System;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var max = 0;
var length = 0;
foreach (var item in str) {
if (item == 'A' || item == 'C' || item == 'G' || item == 'T') {
length++;
} else {
if (max < lengt... | using System;
namespace ConsoleApp {
class Program {
static void Main(string[] args) {
var str = Console.ReadLine();
var max = 0;
var length = 0;
foreach (var item in str) {
if (item == 'A' || item == 'C' || item == 'G' || item == 'T') {
length++;
} else {
if (max < lengt... | [["+", 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 | 107 | 12 |
using System;
namespace ABC122_B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var cnt = 0;
var ans = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i] != 'A' && s[i] != 'C' && s[i] != 'G' && s[i] != 'T') {
ans = Math.Max(ans, cnt);
cnt = 0;
... | using System;
namespace ABC122_B {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
var cnt = 0;
var ans = 0;
for (int i = 0; i < s.Length; i++) {
if (s[i] != 'A' && s[i] != 'C' && s[i] != 'G' && s[i] != 'T') {
ans = Math.Max(ans, cnt);
cnt = 0;
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0... | 8 | 127 | 11 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
#region library
static int n = 0;
static int r = 0;
static int c = 0;
static string s = "";
static string[] ss;
static long sum = 0;
static long cnt = 0;
static long max = -1;
static long min = 2147483... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 12, 252, 0, 104], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 15, 16, 12, 16, 31, 204, 205, ... | 8 | 1,583 | 13 |
using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var Q = input[1];
var S = Console.ReadLine();
var lr = new int [Q][];
for (int i = 0; i < Q; i++) {
lr[i] =... | using System;
using System.Linq;
namespace CSharp {
class Program {
static void Main() {
var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var N = input[0];
var Q = input[1];
var S = Console.ReadLine();
var lr = new int [Q][];
for (int i = 0; i < Q; i++) {
lr[i] =... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0... | 8 | 258 | 10 |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
const long beki = 1000000007;
static void Main(string[] args) {
//入力を受け取る
int[] NQ =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N =... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using E = System.Linq.Enumerable;
class Program {
const long beki = 1000000007;
static void Main(string[] args) {
//入力を受け取る
int[] NQ =
Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
int N =... | [["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 12, 204, 206, 207, 0, ... | 8 | 277 | 10 |
using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder {
public class Program {
public static void Main(string[] args) {
new Program().Solve(new ConsoleInput(Console.In, ' '));
r... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 680 | 10 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) {
int[] NQ = ReadLineParseIntArray();
string S = ReadLine();
int[] counts = new int[NQ[1]];
int[] memo = new int... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using static System.Console;
using static System.Math;
class Program {
static void Main(string[] args) {
int[] NQ = ReadLineParseIntArray();
string S = ReadLine();
int[] counts = new int[NQ[1]];
int[] memo = new int... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 24], ["-", 0, 195, 8, 196, 0, 210, 39, 216, 0, 217], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210,... | 8 | 286 | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.