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; class IDONTKNOWCSHARP { public static void Main() { long[] values = Convert(GetLines()); long N = values[0]; long M = values[1]; long[] values2 = Convert(GetLines()); long sum = 0; foreach (long v in values) { sum += v; } long ans = N - sum; if (ans < 0) ...
using System; class IDONTKNOWCSHARP { public static void Main() { long[] values = Convert(GetLines()); long N = values[0]; long M = values[1]; long[] values2 = Convert(GetLines()); long sum = 0; foreach (long v in values2) { sum += v; } long ans = N - sum; if (ans < 0)...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22]]
8
196
2
using System; using System.Linq; using System.Text; using CompLib.Util; public class Program { int N, A, B, C; string[] S; char[] Ans; bool Flag; long Sum; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.NextInt(); B = sc.NextInt(); C = sc.NextInt(); S = new s...
using System; using System.Linq; using System.Text; using CompLib.Util; public class Program { int N, A, B, C; string[] S; char[] Ans; bool Flag; long Sum; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.NextInt(); B = sc.NextInt(); C = sc.NextInt(); S = new s...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
1,024
2
using System; using System.Collections.Generic; using System.Linq; public class Solution { static string NextIn0(ref long A, ref long B, ref long C, string s) { var ans = ""; switch (s) { case "AB": if (A + B == 0) { return null; } if (A == 0) { ans = "A"; } else {...
using System; using System.Collections.Generic; using System.Linq; public class Solution { static string NextIn0(ref long A, ref long B, ref long C, string s) { var ans = ""; switch (s) { case "AB": if (A + B == 0) { return null; } if (A == 0) { ans = "A"; } else {...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]]
8
891
2
using System; namespace q1 { class q2 { static void Main() { int K = int.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); if (A / K == B / K) { Console.WriteLine("NG"); } else { Console.WriteLine("OK"); } ...
using System; namespace q1 { class q2 { static void Main() { int K = int.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); if ((A - 1) / K == B / K) { Console.WriteLine("NG"); } else { Console.WriteLine("OK"); ...
[["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25]]
8
106
4
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_WeLoveGolf { // https://atcoder.jp/contests/abc165/tasks/abc165_a public static void Main(string[] args) { var sw ...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_WeLoveGolf { // https://atcoder.jp/contests/abc165/tasks/abc165_a public static void Main(string[] args) { var sw ...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
215
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // 問題: class A_165_We_Love_Golf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush =...
[["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
8
226
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_WeLoveGolf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class A_165_WeLoveGolf { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22]]
8
214
4
using System; class Program { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var b = Console.ReadLine().Split(" "); var times = 1000 / a + 1; for (var i = 1; times >= i; i++) { if (int.Parse(b[0]) < a * i && a * i < int.Parse(b[1])) { Console.WriteLine("OK"); ...
using System; class Program { static void Main(string[] args) { var a = long.Parse(Console.ReadLine()); var b = Console.ReadLine().Split(" "); var times = 1000 / a + 1; for (var i = 1; times >= i; i++) { if (int.Parse(b[0]) <= a * i && a * i <= int.Parse(b[1])) { Console.WriteLine("OK")...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19]]
8
135
4
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Question { public class QuestionA { public static void Main(string[] args) { var k = ReadHelper.ReadValue<int>(); var (a, b) = ReadHelper.ReadValue<int, int>(); var mod = a % k; Console.WriteLine(b >= a +...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder.Question { public class QuestionA { public static void Main(string[] args) { var k = ReadHelper.ReadValue<int>(); var (a, b) = ReadHelper.ReadValue<int, int>(); var mod = a % k; Console.WriteLine(mod == 0...
[["+", 0, 28, 0, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 17, 60], ["+", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 106]]
8
617
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace Program1 { class Program { static void Main(string[] args) { var line = Console.ReadLine(); var num = int.Parse(line); // K倍 var line2 = Console.ReadLine(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace Program1 { class Program { static void Main(string[] args) { var line = Console.ReadLine(); var num = int.Parse(line); // K倍 var line2 = Console.ReadLine(); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
8
183
2
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); if (ab[0] % k == 0) Console.WriteLi...
using System; using System.Collections.Generic; using System.Linq; namespace atcoder { class Program { static void Main(string[] args) { var k = int.Parse(Console.ReadLine()); var ab = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); if (ab[0] % k == 0) { Console.Write...
[["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 15, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["-", 15, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
8
136
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp55 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); //.Split(' ').Select(int.Parse) var ab = Console.ReadLine().Split(' ').Select(i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp55 { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); //.Split(' ').Select(int.Parse) var ab = Console.ReadLine().Split(' ').Select(i...
[["-", 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, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
190
4
using System; public class Hello { public static void Main() { var s = int.Parse(Console.ReadLine()); var command = Console.ReadLine().Split(); int a = int.Parse(command[0]); int b = int.Parse(command[1]); var result = 0; for (var i = a; i <= b; i++) { if (i % s == 0) { Console....
using System; public class Hello { public static void Main() { var s = int.Parse(Console.ReadLine()); var command = Console.ReadLine().Split(); int a = int.Parse(command[0]); int b = int.Parse(command[1]); var result = 0; for (var i = a; i <= b; i++) { if (i % s == 0) { Console....
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
132
2
using System; namespace abc165A { class MainClass { public static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); int B = int.Parse(str[1]); if ((A / K) - (B - 1) / K == 0) Console.WriteLine("NG"); e...
using System; namespace abc165A { class MainClass { public static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); int B = int.Parse(str[1]); if ((B / K) - (A - 1) / K == 0) Console.WriteLine("NG"); e...
[["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22]]
8
115
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // kの倍数 int k = int.Parse(Console.ReadLine()); int[] ab = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var ans = new List<int>(); for (var i = ab[0];...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { // kの倍数 int k = int.Parse(Console.ReadLine()); int[] ab = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); var ans = new List<int>(); for (var i = ab[0];...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
162
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_165 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.ABC_165 { class A { static void Main(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 12, 22]]
8
369
4
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int k = s2i(Console.ReadLine()); int[] a...
using System; using System.Collections; using System.Collections.Generic; using System.IO.Pipes; using System.Linq; using System.Numerics; using System.Text; using System.Threading; namespace ForATCODER { public class Program { public static void Main(string[] args) { int k = s2i(Console.ReadLine()); int[] a...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 20]]
8
671
4
using System; using System.Collections.Generic; class Program { static void Main() { int i = 1; int K = int.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); while (true) { int L = K; i += 1; K *= i; ...
using System; using System.Collections.Generic; class Program { static void Main() { int i = 0; int K = int.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(' '); int A = int.Parse(AB[0]); int B = int.Parse(AB[1]); while (true) { int L = K; i += 1; K *= i; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
173
2
using System; using System.Collections.Generic; public class WeLoveGolf { public static void Main() { var K = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var A = int.Parse(input[0]); var B = int.Parse(input[1]); var result = "NG"; for (int i = A; A <= B; i++) {...
using System; using System.Collections.Generic; public class WeLoveGolf { public static void Main() { var K = int.Parse(Console.ReadLine()); var input = Console.ReadLine().Split(' '); var A = int.Parse(input[0]); var B = int.Parse(input[1]); var result = "NG"; for (int i = A; i <= B; i++) {...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
127
4
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; namespace Atcoder { class Program { private const long COMDIV = 1000000007; static voi...
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.IO.Compression; using System.Linq; using System.Numerics; using System.Text; namespace Atcoder { class Program { private const long COMDIV = 1000000007; static voi...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
165
2
using System; using System.Linq; namespace _20200502 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] inputLongArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int x = inputLongArray[0] / n; //商 int y = inputLongArray[...
using System; using System.Linq; namespace _20200502 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] inputLongArray = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int x = inputLongArray[0] / n; //商 int y = inputLongArray[...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
254
2
using System; using System.Collections.Generic; using System.Text; namespace CSharpTest { class A_WeLoveGolf { static void Main(string[] args) { double K = double.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(); double A = double.Parse(AB[0]); double B = double.Parse(AB[1]); i...
using System; using System.Collections.Generic; using System.Text; namespace CSharpTest { class A_WeLoveGolf { static void Main(string[] args) { double K = double.Parse(Console.ReadLine()); string[] AB = Console.ReadLine().Split(); double A = double.Parse(AB[0]); double B = double.Parse(AB[1]); i...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
130
2
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { int f = int.Parse(Console.ReadLine()); int[] nums = Console.ReadLine() .Trim() .Split(' ') .Select(_ => int.Parse(_)) ...
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { int f = int.Parse(Console.ReadLine()); int[] nums = Console.ReadLine() .Trim() .Split(' ') .Select(_ => int.Parse(_)) ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
150
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { // 2つを関連付けてソートする例 class ProgramA { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); //入力 string[] a = Console.ReadLine().Split(' '); int s = int.Parse...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { // 2つを関連付けてソートする例 class ProgramA { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); //入力 string[] a = Console.ReadLine().Split(' '); int s = int.Parse...
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
151
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // string[] str = Console.ReadLine().Split(' '); // int n = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); ...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // string[] str = Console.ReadLine().Split(' '); // int n = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); ...
[["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 98], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 31, 22], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 75, 57, 15, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 17, 60], ["-", 0, 57, 75, 57, 15, 16, 12, 16, 12, 203]]
8
155
6
using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } class StringComparator2 : IComparer<string> { int IComparer<string>.Compare(string a, string b) { int length = Ma...
using System; using System.Collections.Generic; using System.Linq; namespace ClassLibrary1 { public class ListNode { public int val; public ListNode next; public ListNode(int x) { val = x; } } class StringComparator2 : IComparer<string> { int IComparer<string>.Compare(string a, string b) { int length = Ma...
[["-", 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, 17, 109], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22]]
8
1,998
4
using System; using System.Linq; public class Test { public static void Main() { // my code goes here int k = int.Parse(Console.ReadLine()); var c = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int a = c[0]; int b = c[1]; int counter = 0; for (int i = a; i != b; i++) {...
using System; using System.Linq; public class Test { public static void Main() { // my code goes here int k = int.Parse(Console.ReadLine()); var c = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int a = c[0]; int b = c[1]; int counter = 0; for (int i = a; i != b + 1; i+...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
144
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); int k = int.Parse(inp[0]); var inp2 = Console.ReadLine().Split(' '); int a = int.Parse(inp2[0]); int b = int.Parse(inp2[1]); for (int...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); int k = int.Parse(inp[0]); var inp2 = Console.ReadLine().Split(' '); int a = int.Parse(inp2[0]); int b = int.Parse(inp2[1]); for (int...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
147
2
using System; namespace abc165_b { class Program { static void Main(string[] args) { var afterBankDeposit = Int64.Parse(Console.ReadLine()); var year = 0; var bankDeposit = 100d; while (bankDeposit < afterBankDeposit) { bankDeposit += bankDeposit / 100; year++; } Console.Write...
using System; namespace abc165_b { class Program { static void Main(string[] args) { var afterBankDeposit = Int64.Parse(Console.ReadLine()); var year = 0; var bankDeposit = 100L; while (bankDeposit < afterBankDeposit) { bankDeposit += bankDeposit / 100; year++; } Console.Write...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 250], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
70
2
using System; public class Hello { public static void Main() { long x = long.Parse(Console.ReadLine()); long a = 100; var i = 0; while (a <= x) { a += a / 100; i++; } Console.WriteLine(i); } }
using System; public class Hello { public static void Main() { long x = long.Parse(Console.ReadLine()); long a = 100; var i = 0; while (a < x) { a += a / 100; i++; } Console.WriteLine(i); } }
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18]]
8
64
2
using System; namespace Sample { class Sample { static void Main(string[] args) { int x = int.Parse(Console.ReadLine()); int zandaka = 100; int ans = 0; while (zandaka < x) { zandaka += (zandaka / 100); ans = ans + 1; } Console.WriteLine(ans); } } }
using System; namespace Sample { class Sample { static void Main(string[] args) { long x = long.Parse(Console.ReadLine()); long zandaka = 100; int ans = 0; while (zandaka < x) { zandaka += (zandaka / 100); ans = ans + 1; } Console.WriteLine(ans); } } }
[["-", 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
75
6
using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { int x = int.Parse(Console.ReadLine...
using System; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; namespace hello_world { class Program { static void Main(string[] args) { long x = long.Parse(Console.ReadLi...
[["-", 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
107
4
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var X = long.Parse(Console.ReadLine()); var tmp = 100; var count = 0; while (tmp < X) {...
using System; using System.Text; using System.Collections.Generic; using static System.Math; using System.Linq; using static System.Array; namespace ConsoleApp2 { class Program { static void Main(string[] args) { var X = long.Parse(Console.ReadLine()); var tmp = 100L; var count = 0; while (tmp < X) ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 22]]
8
104
6
using System; using System.ComponentModel; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int yokin = 100; int X = int.Parse(Console.ReadLine()); int year = 0; while (yokin < X) { year += 1; yokin = (int)(Math.Floor(yokin * 1.01)); } Console.WriteLine(ye...
using System; using System.ComponentModel; namespace ConsoleApp1 { class Program { static void Main(string[] args) { long yokin = 100; long X = long.Parse(Console.ReadLine()); long year = 0; while (yokin < X) { year += 1; yokin = (long)(Math.Floor(yokin * 1.01)); } Console.WriteLi...
[["-", 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, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199]]
8
86
10
using System; using System.Linq; public class Test { public static void Main() { // my code goes here ulong x = ulong.Parse(Console.ReadLine()); int counter = 0; decimal a = 100; while (a <= x) { a = a * (decimal)1.01; a = Math.Floor(a); counter++; } Console.WriteLine(...
using System; using System.Linq; public class Test { public static void Main() { // my code goes here ulong x = ulong.Parse(Console.ReadLine()); int counter = 0; decimal a = 100; while (a < x) { a = a * (decimal)1.01; a = Math.Floor(a); counter++; } Console.WriteLine(c...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18]]
8
82
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var n = ReadLineLongInt(); var money = 100d; var year = 0; while (money <= n) { money = Math.Floor((money * ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { class Program { static void Main(string[] args) { var n = ReadLineLongInt(); var money = 100d; var year = 0; while (money < n) { money = Math.Floor(money * 0....
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25]]
8
620
4
using System; class Program { static void Main(string[] args) { // 整数の入力 long initialMoney = long.Parse(Console.ReadLine()); long money = 100; int year = 0; double rate = 0; while (money < initialMoney) { rate = money * 0.01f; money = money + (long)rate; year++; } ...
using System; class Program { static void Main(string[] args) { // 整数の入力 long initialMoney = long.Parse(Console.ReadLine()); long money = 100; int year = 0; long rate = 0; while (money < initialMoney) { rate = money / 100; money = money + (long)rate; year++; } Cons...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 250], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
81
6
using System; 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 X = decimal.Parse(Console.ReadLine()); decimal ans = 0; decimal ...
using System; 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 X = decimal.Parse(Console.ReadLine()); decimal ans = 0; decimal ...
[["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 18]]
8
112
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; class Program { public static void Main() { long i = 100; var n = long.Parse(ReadLine()); int count = 0; while (i < n) { i += (long)(i / 100f); coun...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; class Program { public static void Main() { long i = 100; var n = long.Parse(ReadLine()); long count = 0; while (i < n) { i += (long)(i / 100d); cou...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 250], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 250]]
8
97
4
using System; namespace AtCoder { public static class AtCoder { public static void Main() { double a = 100; decimal x = decimal.Parse(Console.ReadLine()); long ans = 1; while (true) { a += Math.Floor(a * 0.01); if ((decimal)a >= x) { break; } ans++; } Console.W...
using System; namespace AtCoder { public static class AtCoder { public static void Main() { decimal a = 100; decimal x = decimal.Parse(Console.ReadLine()); long ans = 1; while (true) { a += (decimal)Math.Floor(a * 0.01m); if ((decimal)a >= x) { break; } ans++; } ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 0, 25], ["-", 12, 213, 3, 4, 0, 28, 0, 16, 12, 250], ["+", 51, 213, 3, 4, 0, 28, 0, 16, 12, 250]]
8
85
7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcorder_text { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int SV = int.Parse(input[0]); int HW = int.Parse(input[1]); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcorder_text { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int SV = int.Parse(input[0]); int HW = int.Parse(input[1]); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
173
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Abc162F { public static void Main() { var input = Console.ReadLine().Split(' '); var d = long.Parse(input[0]); var m = long.Parse(input[1]); var a = Console....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class Abc162F { public static void Main() { var input = Console.ReadLine().Split(' '); var d = long.Parse(input[0]); var m = long.Parse(input[1]); var a = Console....
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
173
4
using System; using static System.Console; using System.Linq; namespace Main { class Program { static void Main(string[] args) { long[] tmp; tmp = ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = tmp[0]; long M = tmp[1]; tmp = ReadLine().Split(' ').Select(long.Parse).ToArray(); Wr...
using System; using static System.Console; using System.Linq; namespace Main { class Program { static void Main(string[] args) { long[] tmp; tmp = ReadLine().Split(' ').Select(long.Parse).ToArray(); long N = tmp[0]; long M = tmp[1]; tmp = ReadLine().Split(' ').Select(long.Parse).ToArray(); Wr...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
124
2
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); // System.Console.ReadLine(); } public static void hoge() { var vars = System.Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = vars[0]; var m = vars[1]; ...
using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { hoge(); // System.Console.ReadLine(); } public static void hoge() { var vars = System.Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = vars[0]; var m = vars[1]; ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20]]
8
141
2
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var N = nm[0]; var M = nm[1]; var input = Console.ReadLine().Split(' ').Select(s => i...
using System; using System.Linq; using System.Collections.Generic; namespace B { class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var N = nm[0]; var M = nm[1]; var input = Console.ReadLine().Split(' ').Select(s => i...
[["-", 0, 284, 0, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 284, 0, 23, 0, 41, 15, 16, 17, 20]]
8
156
2
using System; using System.Linq; namespace AtCoderMake.ABC163 { class ABC163B { static void Main(string[] args) { var a = Console.ReadLine().Split().Select((x) => int.Parse(x)).ToArray(); var b = Console.ReadLine().Split().Select((x) => int.Parse(x)); var n = a[0]; var sum = b.Sum(); ...
using System; using System.Linq; namespace AtCoderMake.ABC163 { class ABC163B { static void Main(string[] args) { var a = Console.ReadLine().Split().Select((x) => int.Parse(x)).ToArray(); var b = Console.ReadLine().Split().Select((x) => int.Parse(x)); var n = a[0]; var sum = b.Sum(); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
132
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.Generic; namespace AtCoder { class Abc162F { static long[] A = new long[200010]; static int[] ans = new int[200010]; public static void Main() { var n = int.Parse(Consol...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.Generic; namespace AtCoder { class Abc162F { static long[] A = new long[200010]; static int[] ans = new int[200010]; public static void Main() { var n = int.Parse(Consol...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
209
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); string[] string2 = Console.ReadLine().Split(' '); int day...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); string[] string2 = Console.ReadLine().Split(' '); int day...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
241
2
using System; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); long n = long.Parse(inp[0]); var inp2 = Console.ReadLine().Split(' '); int[] buka = new int[n]; for (int i = 0; i < inp2.Length; i++) { buka[int.Parse(inp2[i])]++; } for (int ...
using System; class Program { static void Main(string[] args) { var inp = Console.ReadLine().Split(' '); long n = long.Parse(inp[0]); var inp2 = Console.ReadLine().Split(' '); int[] buka = new int[n]; for (int i = 0; i < inp2.Length; i++) { buka[int.Parse(inp2[i]) - 1]++; } for (...
[["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
132
2
using System; using System.Linq; namespace AtCoderMake.ABC163 { class ABC163C { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select((x) => int.Parse(x)); int[] mane = new int[n]; mane.Select((x) => 0); foreach (int ai in...
using System; using System.Linq; namespace AtCoderMake.ABC163 { class ABC163C { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var a = Console.ReadLine().Split().Select((x) => int.Parse(x)); int[] mane = new int[n]; mane.Select((x) => 0); foreach (int ai in...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
129
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int N = int.Parse(Console.ReadLine()); int[] As = Console.ReadLine().Split(' ').Select(int.Parse)....
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace cysharp_test { class Program { static void Main(string[] args) { new Program().solve(); } void solve() { int N = int.Parse(Console.ReadLine()); int[] As = Console.ReadLine().Split(' ').Select(int.Parse)....
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
296
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { class ProgramC { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); string[] a = Console.ReadLine().Split(' '); int[] boss = new int[n]; for (...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { class ProgramC { static void Main(string[] args) { //入力 int n = int.Parse(Console.ReadLine()); string[] a = Console.ReadLine().Split(' '); int[] boss = new int[n]; for (...
[["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
151
2
using System; //この問題を解きやすいように解釈すると // 0,1,2,3,...,nのうちs個(s=k~n+1)取った時を考えればよい //またこの時の最大値、最小値は // Min=0+1+...+(s-1) // Max=(n-s+1)+...+n //この間は全て存在する //計算を省略するため連続する数の和の公式も使う // f(l,r)=l+(l+1)+..+r=(l+r)(r-l+1)/2 class Program { static readonly int M = (int)Math.Pow(10, 9) + 7; static void Main() { string[] In ...
using System; //この問題を解きやすいように解釈すると // 0,1,2,3,...,nのうちs個(s=k~n+1)取った時を考えればよい //またこの時の最大値、最小値は // Min=0+1+...+(s-1) // Max=(n-s+1)+...+n //この間は全て存在する //計算を省略するため連続する数の和の公式も使う // f(l,r)=l+(l+1)+..+r=(l+r)(r-l+1)/2 class Program { static readonly int M = (int)Math.Pow(10, 9) + 7; static void Main() { string[] In ...
[["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]]
8
215
4
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static void Main(string[] args) { try { Solve.Answer(); } catch (Exception ex) { ...
[["+", 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, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
8
1,126
7
using System; using System.Linq; class AtCoderCS { static void Main(string[] args) { int[] NK = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int N = NK[0], K = NK[1]; long ans = 0, min = 0, max = N; for (int i = 1; i < N + 1; i++) { min += i; max += N - i; ...
using System; using System.Linq; class AtCoderCS { static void Main(string[] args) { int[] NK = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray(); int N = NK[0], K = NK[1]; long ans = 0, min = 0, max = 0; for (int i = 0; i < N + 1; i++) { min += i; max += N - i; ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]]
8
142
4
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = inputs[0]; var k = inputs[1]; Modint result = 0; for (long i = k; i <= n + 1; i++) { result...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var inputs = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var n = inputs[0]; var k = inputs[1]; Modint result = 0; for (long i = k; i <= n + 1; i++) { result...
[["+", 0, 213, 3, 4, 0, 28, 0, 214, 0, 131], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 141, 22]]
8
461
2
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { int X = int.Parse(ReadLine()); ...
using System; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Atcoder_Answer { class Program { const Int32 mod = 1000000007; static void Main(string[] args) { long X = long.Parse(ReadLine()); ...
[["-", 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, 1, 0, 11, 12, 74, 39, 199], ["+", 8, 196, 0, 1, 0, 11, 12, 74, 39, 199]]
8
397
8
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArra...
using System; using System.Linq; using System.Collections.Generic; using System.IO; using static System.Console; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArra...
[["-", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22]]
8
299
2
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramD { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var a = double.Parse(inputs[0]); var b = double.Parse(inputs[1]); var n = double.Parse(inputs[2]); var x = Math.Min(b, ...
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramD { static void Main(string[] args) { var inputs = Console.ReadLine().Split(" "); var a = double.Parse(inputs[0]); var b = double.Parse(inputs[1]); var n = double.Parse(inputs[2]); var x = Math.Min(b -...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
135
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string[] str; str = Cons...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; using static AtCoderTemplate.MyLibrary; namespace AtCoderTemplate { class Program { static void Main(string[] args) { string[] str; str = Cons...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
202
2
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); long A = input[0]; long B = input[1]; long N = input[2]; long x = Math.Min(B - 1, N); Console.WriteLine(Convert....
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(long.Parse).ToArray(); long A = input[0]; long B = input[1]; long N = input[2]; long x = Math.Min(B - 1, N); Console.WriteLine(Convert...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
105
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp57 { class Program { static int A, B, N; static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); A = l[0]; B = l[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp57 { class Program { static long A, B, N; static void Main(string[] args) { var l = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); A = l[0]; B = l[1]; ...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
151
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { double[] arr = Console.ReadLine().Split(' ').Select(v => double.Parse(v)).ToArray(); double a = arr[0]; double b = arr[1]; double n = arr[2]; double nMax...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { double[] arr = Console.ReadLine().Split(' ').Select(v => double.Parse(v)).ToArray(); double a = arr[0]; double b = arr[1]; double n = arr[2]; double nMax...
[["-", 0, 200, 0, 212, 0, 41, 15, 16, 12, 22], ["+", 0, 200, 0, 212, 0, 41, 15, 16, 12, 22], ["-", 0, 200, 0, 212, 0, 41, 75, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 41, 75, 16, 31, 22]]
8
141
4
using System; namespace D { class Program { static void Main(string[] args) { var abn = Console.ReadLine().Split(' '); var a = long.Parse(abn[0]); var b = long.Parse(abn[1]); var n = decimal.Parse(abn[2]); var tmp = Math.Clamp(b - 1, 0, n); Console.WriteLine(a * tmp / b); } } }
using System; namespace D { class Program { static void Main(string[] args) { var abn = Console.ReadLine().Split(' '); var a = long.Parse(abn[0]); var b = long.Parse(abn[1]); var n = long.Parse(abn[2]); long tmp = Math.Clamp(b - 1, 0, n); Console.WriteLine(a * tmp / b); } } }
[["-", 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, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
104
4
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); var n = long.Parse(line[2]); getAns(a, b, n); } static void getAns(long a, long b, long n) { long x; if (b >= ...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = long.Parse(line[0]); var b = long.Parse(line[1]); var n = long.Parse(line[2]); getAns(a, b, n); } static void getAns(long a, long b, long n) { long x; if (n >= ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ["-", 8, 196, 0, 57, 75, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 75, 1, 0, 11, 12, 22]]
8
143
6
using System; 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 ABN = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray(); ...
using System; 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 ABN = Console.ReadLine().Split().Select(s => long.Parse(s)).ToArray(); ...
[["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 12, 203]]
8
147
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 3; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 3; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
262
2
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { // 2つを関連付けてソートする例 class ProgramA { static void Main(string[] args) { string[] z = Console.ReadLine().Split(' '); long a = long.Parse(z[0]); long b = long.Parse(z[1]); long ...
using System; using System.Numerics; using System.Linq; using System.Collections.Generic; using System.Text; namespace debug { // 2つを関連付けてソートする例 class ProgramA { static void Main(string[] args) { string[] z = Console.ReadLine().Split(' '); long a = long.Parse(z[0]); long b = long.Parse(z[1]); long ...
[["-", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 141, 22], ["-", 31, 16, 31, 16, 12, 213, 63, 214, 141, 22], ["+", 31, 16, 31, 16, 12, 213, 63, 214, 141, 22]]
8
142
4
using System; using System.Collections.Generic; namespace abc165 { class Program { static void Main() { var nmq = Console.ReadLine().Split(' '); var a = long.Parse(nmq[0]); var b = long.Parse(nmq[1]); var n = long.Parse(nmq[2]); if (n > b) { Console.WriteLine((a * (b - 1)) / b); } else ...
using System; using System.Collections.Generic; namespace abc165 { class Program { static void Main() { var nmq = Console.ReadLine().Split(' '); var a = long.Parse(nmq[0]); var b = long.Parse(nmq[1]); var n = long.Parse(nmq[2]); if (n >= b) { Console.WriteLine((a * (b - 1)) / b); } else...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
121
2
using System; using System.Linq; class Program { static void Main() { long[] N = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long ans = 0; long x = N[2]; if (N[2] > N[1]) { x = N[1] - 1; } ans = N[0] * x / N[1]; Console.WriteLine(ans); } }
using System; using System.Linq; class Program { static void Main() { long[] N = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); long ans = 0; long x = N[2]; if (N[2] >= N[1]) { x = N[1] - 1; } ans = N[0] * x / N[1]; Console.WriteLine(ans); } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
110
2
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // string[] str = Console.ReadLine().Split(' '); // int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace Main { class Program { static void Main(string[] args) { //ここから // string[] str = Console.ReadLine().Split(' '); // int n = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
183
2
using System; using System.Linq; namespace AtCoder { class Program { static void Main() { int[] abn = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int a = abn[0], b = abn[1], n = abn[2]; int x = b - 1 <= n ? b - 1 : x = n; Console.WriteLine(a * x / b - a * (x / b)); } } }
using System; using System.Linq; namespace AtCoder { class Program { static void Main() { long[] abn = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long a = abn[0], b = abn[1], n = abn[2]; long x = b - 1 <= n ? b - 1 : x = n; Console.WriteLine(a * x / b - a * (x / b)); } } }
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
110
8
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Numerics; using System.IO; using System.Runtime.InteropServices; using static System.Math; using stat...
[["+", 10, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 21], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25]]
8
1,790
5
using System; using System.Collections.Generic; using System.Linq; class D { static void Main() { #if DEBUG string exampleInput = @"5 7 4 "; Console.SetIn(new System.IO.StringReader(exampleInput)); #endif var ABN = Console.ReadLine().Split(' ').Select(long.Parse).ToList(); var A = ABN[0]; var B ...
using System; using System.Collections.Generic; using System.Linq; class D { static void Main() { #if DEBUG string exampleInput = @"50000 700000 40000000000 "; Console.SetIn(new System.IO.StringReader(exampleInput)); #endif var ABN = Console.ReadLine().Split(' ').Select(long.Parse).ToList(); var A =...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 258], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 258], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 57, 64, 196, 0, 46]]
8
215
8
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); decimal[] abn = Console.ReadLine().Split().Select(decimal.Pa...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { // 入力 // var s = Console.ReadLine(); // var n = int.Parse(Console.ReadLine()); decimal[] abn = Console.ReadLine().Split().Select(decimal.Pa...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
177
2
using System; namespace D { class Program { static void Main(string[] args) { var ABN = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var A = ABN[0]; var B = ABN[1]; var N = ABN[2]; if (B - 1 <= N) Console.WriteLine(calc(B - 1, A, B)); else Console.WriteLine(calc(N, ...
using System; namespace D { class Program { static void Main(string[] args) { var ABN = Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); var A = ABN[0]; var B = ABN[1]; var N = ABN[2]; if (B - 1 <= N) Console.WriteLine(calc(B - 1, A, B)); else Console.WriteLine(calc(N,...
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
144
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; public readon...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Globalization; using System.Collections; namespace Atcoder { public class CPair<T, U> : IComparable where T : IComparable<T> { public readonly T Item1; public readon...
[["+", 12, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 12, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
10,679
2
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 F { 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 F { public static void Main() => (new Solver()).Solve(); } public class Solver { p...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20]]
8
1,122
2
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using nint = System.Int64; static class Program { const int mod = (int)1e9 + ...
using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using nint = System.Int64; static class Program { const int mod = (int)1e9 + ...
[["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
5,282
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics; using System.Numerics; using static System.Console; using static System.Convert; using static System.Math; using static Template; using Pi = Pair<int, i...
[["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22]]
8
2,298
2
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { int N; int[] A; List<int>[] Edge; int Len; int[] Stack; int[] Ans; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.IntArray(); Edge = new List<int>[N]; ...
using System; using System.Collections.Generic; using System.Linq; using CompLib.Util; public class Program { int N; int[] A; List<int>[] Edge; int Len; int[] Stack; int[] Ans; public void Solve() { var sc = new Scanner(); N = sc.NextInt(); A = sc.IntArray(); Edge = new List<int>[N]; ...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 18]]
8
734
2
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); var ans = (s[0] > 2 * s[1]) ? "safe" : "unsafe"; WriteLine(ans); ...
using System; using static System.Console; using static System.Math; using System.Numerics; using System.Collections.Generic; using System.Linq; public class Program { public static void Main(string[] args) { var s = myRead.readIntArray(); var ans = (s[0] > s[1]) ? "safe" : "unsafe"; WriteLine(ans); } ...
[["-", 0, 41, 15, 23, 0, 16, 12, 16, 31, 203], ["-", 0, 41, 15, 23, 0, 16, 12, 16, 17, 48]]
8
452
2
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, ' ')); } ...
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 19], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47]]
8
598
2
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var sw = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); Console.WriteLine(sw[0] >= sw[1] ? "safe" : "unsafe"); } } ...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace atcoder { class Program { static void Main(string[] args) { var sw = Console.ReadLine().Split(' ').Select(num => int.Parse(num)).ToArray(); Console.WriteLine(sw[0] > sw[1] ? "safe" : "unsafe"); } } }
[["-", 3, 4, 0, 28, 0, 41, 15, 16, 17, 20], ["+", 3, 4, 0, 28, 0, 41, 15, 16, 17, 47]]
8
94
2
using System; namespace abc164A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); int B = int.Parse(str[1]); if (A > B) Console.WriteLine("Safe"); else Console.WriteLine("Unsafe"); } } }
using System; namespace abc164A { class MainClass { public static void Main(string[] args) { string[] str = Console.ReadLine().Split(); int A = int.Parse(str[0]); int B = int.Parse(str[1]); if (A > B) Console.WriteLine("safe"); else Console.WriteLine("unsafe"); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]]
8
89
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class Program { static void Main(string[] args) { if (args.Length > 0) { Console.SetIn(new StreamReader(args[0])); } var line = Console.ReadLine(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ABC { class Program { static void Main(string[] args) { if (args.Length > 0) { Console.SetIn(new StreamReader(args[0])); } var line = Console.ReadLine(); ...
[["-", 0, 28, 0, 41, 15, 16, 31, 16, 17, 85], ["-", 0, 28, 0, 41, 15, 16, 31, 16, 12, 203]]
8
161
2
using System; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int Sheep = int.Parse(str[0]); int Wolves = int.Parse(str[1]); if (Wolves > Sheep) { Console.WriteLine("safe"); } else { Console.WriteLine("unsafe"); } } }
using System; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); int Sheep = int.Parse(str[0]); int Wolves = int.Parse(str[1]); if (Wolves < Sheep) { Console.WriteLine("safe"); } else { Console.WriteLine("unsafe"); } } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
91
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Atcoder { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var input = ReadLongs(); long ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Atcoder { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var input = ReadLongs(); long ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
217
2
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { int[] nums = Console.ReadLine() .Trim() .Split(' ') .Select(_ => int.Parse(_)) .ToArray(); if (nums[0] < nums[1]...
using System; using System.Linq; namespace ConsoleApp1 { public class Class1 { static void Main(string[] args) { int[] nums = Console.ReadLine() .Trim() .Split(' ') .Select(_ => int.Parse(_)) .ToArray(); if (nums[0] > nums[1]...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
101
2
// ABC164 // a.cs using System; class A { public static void Main() { int sheep; int wolf; string[] str = Console.ReadLine().Split(' '); sheep = int.Parse(str[0]); wolf = int.Parse(str[1]); if (sheep >= wolf) { Console.WriteLine("safe"); } else { Console.WriteLine("unsafe")...
// ABC164 // a.cs using System; class A { public static void Main() { int sheep; int wolf; string[] str = Console.ReadLine().Split(' '); sheep = int.Parse(str[0]); wolf = int.Parse(str[1]); if (sheep > wolf) { Console.WriteLine("safe"); } else { Console.WriteLine("unsafe");...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
94
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Contracts; using System.Linq; namespace at_coder { #if TEST [TestClass] #endif public class Test_164_a { #if TEST public static void Test_Main() #else public static void Main() #endif { int s, w; ReadInt(...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Contracts; using System.Linq; namespace at_coder { #if TEST [TestClass] #endif public class Test_164_a { #if TEST public static void Test_Main() #else public static void Main() #endif { int s, w; ReadInt(...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
374
2
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { public static void Main() { var intArray = IO.ReadIntArray(); IO.Write(intArray[0] > intArray[1] ? "unsafe" : "safe"); } } public static class IO { public static string Read() { return Console.ReadLine...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { public static void Main() { var intArray = IO.ReadIntArray(); IO.Write(intArray[0] > intArray[1] ? "safe" : "unsafe"); } } public static class IO { public static string Read() { return Console.ReadLine...
[["-", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 64, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
655
4
using System; namespace test1 { class Program { static void Main(string[] args) { string ab = Console.ReadLine(); if (int.Parse(ab.Split(' ')[0]) < int.Parse(ab.Split(' ')[1])) { Console.WriteLine("unsafe"); } else { Console.WriteLine("safe"); } } } }
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string ab = Console.ReadLine(); if (int.Parse(ab.Split(' ')[0]) <= int.Parse(ab.Split(' ')[1])) { Console.WriteLine("unsafe"); } else { Console.WriteLine("safe"); } } } }
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
90
4
using System; using System.Linq; namespace AtCoderMake.ABC161 { class ABC161C { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select((x) => int.Parse(x)).ToArray(); int par = input[0] % input[1]; int bar = input[1] - par; if (par >= bar) { C...
using System; using System.Linq; namespace AtCoderMake.ABC161 { class ABC161C { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select((x) => long.Parse(x)).ToArray(); long par = input[0] % input[1]; long bar = input[1] - par; if (par >= bar) { ...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 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]]
8
119
6
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 { static void Main() { int[] NK = ReadInts; int N = NK[0]; int K = NK[1...
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 { static void Main() { long[] NK = ReadLongs; long N = NK[0]; long K = ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
2,051
8
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace AtCoder { partial class Program { static long mod = 1000000007; static void Swap<T>(ref T a, ref T b) { T temp = a; a = b; b = temp; } ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,530
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; class C { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { int N, K; Input(out N, out K); int min1 = N % K; int min2 = Math.Abs(...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class C { static StreamWriter Out = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; static void Main(string[] args) { long N, K; Input(out N, out K); long min1 = N % K; long min2 = Math.A...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
870
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); if (input <= 9) { Console.WriteLine(input); return; } List<double> list = new List<double>(); for (int i =...
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); if (input <= 9) { Console.WriteLine(input); return; } List<double> list = new List<double>(); for (int i =...
[["-", 8, 196, 0, 52, 8, 196, 0, 210, 39, 199], ["+", 8, 196, 0, 52, 8, 196, 0, 210, 39, 199], ["-", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 223, 0, 29], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
484
7
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static ABC161.D.Cin; using static ABC161.D.Util; using Pair = ABC161.D.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; namespace ABC161 { p...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static ABC161.D.Cin; using static ABC161.D.Util; using Pair = ABC161.D.VTuple<long, long>; using Graph = System.Collections.Generic.List<System.Collections.Generic.List<long>>; using System.Text; namespace ABC161 { p...
[["-", 12, 218, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 12, 218, 8, 196, 0, 7, 15, 16, 17, 19]]
8
3,784
2
using System; using System.Collections.Generic; namespace abc161 { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var lun = new List<int>(); lun.Add(0); for (var i = 0; i < n; ++i) { Inc(lun, 0); } Write(lun); } static void Inc(List<int> lun, int level) ...
using System; using System.Collections.Generic; namespace abc161 { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var lun = new List<int>(); lun.Add(0); for (var i = 0; i < n; ++i) { Inc(lun, 0); } Write(lun); } static void Inc(List<int> lun, int level) ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 12, 5, 0, 62], ["-", 3, 4, 0, 28, 0, 16, 12, 5, 0, 222]]
8
309
4