buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); ...
[["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["-", 64, 196, 0, 1, 0, 11, 12, 241, 0, 203], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203]]
8
219
using System; using System.Collections.Generic; using System.Dynamic; 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)...
using System; using System.Collections.Generic; using System.Dynamic; 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)...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18]]
8
2,245
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine(); var inputs = Console.ReadLine().Split(' '); ulong ans = 1; var flag = true; foreach (var n in inputs) { if (flag) { if (n.ToCharArray...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine(); var inputs = Console.ReadLine().Split(' '); decimal ans = 1; var flag = true; foreach (var n in inputs) { if (flag) { if (n.ToCharArr...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 75, 196, 0, 57, 15, 16, 12,...
8
210
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 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, 198, 0, 200, 0, 212, 0, 74, ...
8
273
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { long N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); long ans = 1; if (A.Any(x => x == 0)) { Console.WriteLine(0); return; ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { long N = long.Parse(Console.ReadLine()); var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); long ans = 1; if (A.Any(x => x == 0)) { Console.WriteLine(0); return; ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 8, 196, 0, 246, 8, 196, 0, 287, 0, 292], ["+", 0, 246, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 0, 210, 8, 196, 0, 246, 8, 196, 0, 46], ["-", 8, 196, 0, 246, 0, 248, 0, 300, 39, 22], ["+", 8, 196, 0, 246, 0, 248, 0, ...
8
151
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int a = int.Parse(System.Console.ReadLine()); long[] nm = Array.ConvertAll(System.Console.ReadLine().Split(' '), long.Parse); long mal = nm[0]; for (int i = 0; i < a; i++) { if (nm[i] == 0) { ...
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { int a = int.Parse(System.Console.ReadLine()); long[] nm = Array.ConvertAll(System.Console.ReadLine().Split(' '), long.Parse); long mal = nm[0]; for (int i = 0; i < a; i++) { if (nm[i] == 0) { ...
[["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
203
using System; namespace abc169 { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var aList = ReadNumList(); foreach (var a in aList) { if (a == 0) { Console.WriteLine(0); } } Decimal total = 1; try { foreach (var a in aList) { tota...
using System; namespace abc169 { class B { static void Main() { var n = int.Parse(Console.ReadLine()); var aList = ReadNumList(); foreach (var a in aList) { if (a == 0) { Console.WriteLine(0); return; } } Decimal total = 1; try { foreach (var a in aList) { ...
[["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
203
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); if (A.Contains(0)) { Console.WriteLine(0); return; } long ...
using System; using System.Collections.Generic; using System.Linq; public class Solution { public static void Main() { var N = int.Parse(Console.ReadLine()); var A = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); if (A.Contains(0)) { Console.WriteLine(0); return; } long ...
[["+", 8, 196, 0, 210, 8, 196, 0, 287, 0, 292], ["+", 0, 210, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 0, 196, 0, 246, 0, 248, 8, 196, 0, 46]]
8
145
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...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]]
8
12,082
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace C { public class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Cons...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25]]
8
144
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var A = long.Parse(input[0]); var B = (long)Math.Round(double.Parse(input[1])) * 100; Console.WriteLine(A * B / 100); } }
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var A = long.Parse(input[0]); var B = (long)Math.Round(double.Parse(input[1]) * 100); Console.WriteLine(A * B / 100); } }
[["-", 0, 16, 31, 74, 51, 213, 3, 4, 0, 25], ["+", 0, 212, 0, 74, 51, 213, 3, 4, 0, 25]]
8
93
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).ToArr...
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).ToArr...
[["-", 63, 214, 205, 204, 206, 207, 0, 28, 0, 203], ["+", 63, 214, 205, 204, 206, 207, 0, 28, 0, 203]]
8
292
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var a = double.Parse(Scanner.Scan()); var b = double.Parse(Scanner.Scan())...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace AtCoder { class Program { private static void Main(string[] args) { var a = decimal.Parse(Scanner.Scan()); var b = decimal.Parse(Scanner.Scan(...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25]]
8
1,159
using System; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var a = decimal.Parse(input[0]); var b = decimal.Parse(input[1]); Console.WriteLine(Decimal.Round(a * b - (decimal)0.5)); } } }
using System; namespace Contest { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(" "); var a = decimal.Parse(input[0]); var b = decimal.Parse(input[1]); Console.WriteLine(Decimal.Floor(a * b)); } } }
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 39, 199], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 0, 25], ["-", 3, 4, 0, 28, 0, 16, 12, 74, 51, 250]]
8
83
using System; using System.Collections.Generic; using System.Linq; public class AtCoder { public static void Main() { //入力を保持する var AB = Console.ReadLine().Split().Select(e => double.Parse(e)).ToArray(); var A = AB[0]; var B = AB[1]; var ans = Math.Truncate(A * B); Console.WriteLine(ans); ...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { //入力を保持する var AB = Console.ReadLine().Split().Select(e => decimal.Parse(e)).ToArray(); var A = AB[0]; var B = AB[1]; var ans = Math.Truncate(A * B); Console.WriteLine(ans); ...
[["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
93
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; // using System.Numerics; using System.Runtime.CompilerServices; using System.Diagnostics; using ll=System.Int64; using static Contest_C.Lib_IO; using static Contest_C.Lib_Minifunc; public static class Contest_C { public static ...
[["-", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 287, 0, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 74, 51, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 74, 51, 23, 0, 16, 12, 74, 39, 199], ["+", 0, 74, 51, 23, 0, 16, 12, 74, 0, 25]]
8
2,910
using System; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = ReadLine().Split(); double a = double.Parse(s[0]); double b = double.Parse(s[1]); double ans = Truncate(a * b); WriteLine(ans); } } }
using System; using static System.Console; using static System.Math; namespace AtCoder { public class Program { public static void Main(string[] args) { var s = ReadLine().Split(); decimal a = decimal.Parse(s[0]); decimal b = decimal.Parse(s[1]); var ans = Truncate(a * b); 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, 196, 0, 197, 0, 198, 39, 216, 0, 217]]
8
88
using System; namespace TEST { class Program { private static void Main(string[] arg) { string[] x = Console.ReadLine().Split(); ulong a = ulong.Parse(x[0]); double b = double.Parse(x[1]); double y = a * b; Console.WriteLine(Math.Truncate(y)); } } }
using System; namespace TEST { class Program { private static void Main(string[] arg) { string[] x = Console.ReadLine().Split(); ulong a = ulong.Parse(x[0]); decimal b = decimal.Parse(x[1]); decimal y = a * b; Console.WriteLine(Math.Truncate(y)); } } }
[["-", 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
83
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc169/tasks/abc169_c class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Consol...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { // https://atcoder.jp/contests/abc169/tasks/abc169_c class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Consol...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
154
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class ABC169 { static void Main() { // int A = 198; // double B = 1.10; // dynamic ans = A * B; // long[] num_array = Array.ConvertAll(Console.ReadLine().Split(' '), // long.Parse); ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class ABC169 { static void Main() { // int A = 198; // double B = 1.10; // dynamic ans = A * B; // long[] num_array = Array.ConvertAll(Console.ReadLine().Split(' '), // long.Parse); ...
[["-", 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
using System; namespace AtCoderBeginnerContest169 { class Multiplication3_3 { static void Main(string[] args) { string[] c = Console.ReadLine().Split(); ulong a = ulong.Parse(c[0]); double b = double.Parse(c[1]); Console.WriteLine((ulong)(a * b)); } } }
using System; namespace AtCoderBeginnerContest169 { class Multiplication3_3 { static void Main(string[] args) { string[] c = Console.ReadLine().Split(); ulong a = ulong.Parse(c[0]); decimal b = decimal.Parse(c[1]); Console.WriteLine((ulong)(a * b)); } } }
[["-", 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
77
using System; using System.IO; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] arr = Console.ReadLine().Split(' '); var a = int.Parse(arr[0]); var b = double.Parse(arr[1]); var sum = (int)(a * b); Console.WriteLine(sum); } ...
using System; using System.IO; using System.Collections.Generic; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] arr = Console.ReadLine().Split(' '); var a = ulong.Parse(arr[0]); var b = decimal.Parse(arr[1]); var sum = (ulong)(a * b); Console.WriteLine(sum);...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199]]
8
97
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); var list = new List<double>(); foreach (string s in input) { list.Add(double.Parse(s)); } double result = Math.Truncate(list[...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); var list = new List<decimal>(); foreach (string s in input) { list.Add(decimal.Parse(s)); } decimal result = Math.Truncate(li...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 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]]
8
105
using System; class Program { static void Main() { // int N = Int32.Parse(Console.ReadLine()); string[] sarr = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmptyEntries); long A = Int64.Parse(sarr[0]); double B = Convert.ToDouble(sarr[1]); long C = A * (long)(B * 100); Con...
using System; class Program { static void Main() { // int N = Int32.Parse(Console.ReadLine()); string[] sarr = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmptyEntries); long A = Int64.Parse(sarr[0]); decimal B = Convert.ToDecimal(sarr[1]); long C = A * (long)(B * 100); C...
[["-", 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, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
91
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC169C { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); double b = double.Parse(input[1]); b...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC169C { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); decimal b = decimal.Parse(input[1]); ...
[["-", 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, 16, 12, 250], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 0, 200, 0, 212, 0, 213, 63,...
8
202
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { double[] AB = Array.ConvertAll(Console.ReadLine().Split(), double.Parse); Console.WriteLine(Math.Floor(AB[0] * AB[1])); // Console.WriteLine(AB[0]*AB[1]); }...
using System; using System.Collections.Generic; using System.Linq; namespace easy_Atcoder { class Program { static void Main(string[] args) { decimal[] AB = Array.ConvertAll(Console.ReadLine().Split(), decimal.Parse); Console.WriteLine(Math.Floor(AB[0] * AB[1])); // Console.WriteLine(AB[0]*AB[1]); ...
[["-", 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
115
using System; using System.Linq; namespace ProblemC { class Program { static void Main() { var temp = Console.ReadLine().Split(' ').ToArray(); long A = long.Parse(temp[0]); double B = double.Parse(temp[1]); long LB = (long)(B * 100); long ans = LB * A; Console.WriteLine(ans / 100); } } }
using System; using System.Linq; namespace ProblemC { class Program { static void Main() { var temp = Console.ReadLine().Split(' ').ToArray(); long A = long.Parse(temp[0]); double B = double.Parse(temp[1]); long LB = (long)(B * 100.000001); long ans = LB * A; Console.WriteLine(ans / 100); }...
[["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250]]
8
97
using System; using System.Linq; namespace ProblemC { class Program { static void Main() { var temp = Console.ReadLine().Split(' ').ToArray(); long A = long.Parse(temp[0]); double B = double.Parse(temp[1]); long LB = (long)(B * 100); long ans = LB * A; Console.WriteLine(ans / 100); } } }
using System; using System.Linq; namespace ProblemC { class Program { static void Main() { var temp = Console.ReadLine().Split(' ').ToArray(); long A = long.Parse(temp[0]); decimal B = decimal.Parse(temp[1]); long LB = (long)(B * 100); long ans = LB * A; Console.WriteLine(ans / 100); } } }
[["-", 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
97
using System; namespace fight3 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); double B = double.Parse(input[1]); double C = Math.Floor(A * B); Console.WriteLine(C); } } }
using System; namespace fight3 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); decimal B = decimal.Parse(input[1]); decimal C = Math.Floor(A * B); Console.WriteLine(C); } } }
[["-", 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
85
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); Console.WriteLine( Math.Floor(double.Parse(input[0]) * double.Parse(input[1]))); } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); Console.WriteLine( Math.Floor(decimal.Parse(input[0]) * decimal.Parse(input[1]))); } }
[["-", 0, 28, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 28, 0, 16, 12, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 16, 12, 213, 63, 214, 205, 199]]
8
66
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; using System.Xml; namespace hello...
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Security.Cryptography.X509Certificates; using System.Xml; namespace hello...
[["-", 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
142
using System; class Program { static void Main() { string[] In = Console.ReadLine().Split(' '); double a = double.Parse(In[0]); double b = double.Parse(In[1]); Console.WriteLine(Math.Floor(a * b)); } }
using System; class Program { static void Main() { string[] In = Console.ReadLine().Split(' '); decimal a = decimal.Parse(In[0]); decimal b = decimal.Parse(In[1]); Console.WriteLine(Decimal.Floor(a * b)); } }
[["-", 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22]]
8
72
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var N = RL<string>(); long A = long.Parse(N[0]); double B = double.Parse(N[1]); long ans = (long)((A * (B * 100)) / 100); Console.Write(ans); } s...
using System; using System.Linq; using System.Collections.Generic; namespace ConsoleApp1 { public class Class { static void Main(string[] args) { var N = RL<string>(); long A = long.Parse(N[0]); decimal B = decimal.Parse(N[1]); long ans = (long)((A * (B * 100)) / 100); Console.Write(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
333
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]; b *= 100; long al = (long)a; ...
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]; b = b * 100 + 0.5; long al = (...
[["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 108], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 250]]
8
123
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace MyProject { class Program { static void Main(string[] args) { #if Local var sw = new Stopwatch(); sw.Start(); Console.SetIn(new StreamReader("input.in")); #endif var solver = new S...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 74, 39, 199]]
8
204
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); Solve(); Co...
[["+", 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]]
8
1,097
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Co...
[["+", 0, 212, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250]]
8
176
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); decimal a = (decimal)sc.NextLong(); double b = sc.NextDouble(); decimal c = (decimal)(b * 100); decimal answer = a * c / 100; Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderB { static void Main() { var sc = new Scanner(); decimal a = (decimal)sc.NextLong(); double b = sc.NextDouble(); decimal c = (decimal)(b * 100); decimal answer = a * c / 100; Console.W...
[["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25]]
8
383
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc169C { public static void Main() { var ab = Console.ReadLine().Split(' ').ToArray(); long a = long.Parse(ab[0]); long b = (long)(double.Parse(ab[1]) * 100); Console.WriteLine(a * b / 100); } } }
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Abc169C { public static void Main() { var ab = Console.ReadLine().Split(' ').ToArray(); long a = long.Parse(ab[0]); long b = (long)(double.Parse(ab[1]) * 100 + 0.5); Console.WriteLine(a * b / 100); } } }
[["+", 0, 212, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250]]
8
95
// // ABC169C // URL : https://atcoder.jp/contests/abc169/tasks/abc169_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC169C { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; static void ...
// // ABC169C // URL : https://atcoder.jp/contests/abc169/tasks/abc169_c // using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; namespace AtCoder { class ABC169C { public static readonly long MOD_CONST = 1000000007; //(long)Math.Pow(10, 9) + 7; static void ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
772
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); double a, b; a = double.Parse(input[0]); b = double.Parse(input[1]); Console.WriteLine("{0:D}", (long)Math.Floor(a * b)); } }
using System; class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); decimal a, b; a = decimal.Parse(input[0]); b = decimal.Parse(input[1]); Console.WriteLine("{0:D}", (long)Math.Floor(a * b)); } }
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199]]
8
86
using System; using System.Collections.Generic; using System.Text; namespace AtCoder.ABC169 { public class Problem3 { public static void Main(string[] args) { var a = Console.ReadLine().Split(" "); var i = double.Parse(a[0]) * double.Parse(a[1]); Console.WriteLine(Math.Floor(i).ToString()); ...
using System; using System.Collections.Generic; using System.Text; namespace AtCoder.ABC169 { public class Problem3 { public static void Main(string[] args) { var a = Console.ReadLine().Split(" "); var i = decimal.Parse(a[0]) * decimal.Parse(a[1]); Console.WriteLine(Math.Floor(i).ToString());...
[["-", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 212, 0, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 212, 0, 16, 12, 213, 63, 214, 205, 199], ["+", 0, 212, 0, 16, 12, 213, 63, 214, 205, 199]]
8
93
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 = Console.ReadL...
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 = 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, 22]]
8
138
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace C { class Program { static void Main(string[] args) { String[] AB = Console.ReadLine().Split(' '); ulong A = ulong.Parse(AB[0]); double B = double.Parse(AB[1]); ulong ans = (ulong)((decimal)(A * B)); ...
using System; using System.Linq; using System.Collections.Generic; using System.Numerics; namespace C { class Program { static void Main(string[] args) { String[] AB = Console.ReadLine().Split(' '); ulong A = ulong.Parse(AB[0]); decimal B = decimal.Parse(AB[1]); ulong ans = (ulong)((decimal)(A * B));...
[["-", 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
113
using System; using System.Collections.Generic; class Program { static void Main() { string[] AB = Console.ReadLine().Split(' '); double A = double.Parse(AB[0]); double B = double.Parse(AB[1]); double C = 0; C = A * B; C = Math.Floor(C); Console.WriteLine(C); } }
using System; using System.Collections.Generic; class Program { static void Main() { string[] AB = Console.ReadLine().Split(' '); decimal A = decimal.Parse(AB[0]); decimal B = decimal.Parse(AB[1]); decimal C = 0; C = A * B; C = Math.Floor(C); Console.WriteLine(C); } }
[["-", 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
92
using System; using System.Linq; using System.Collections.Generic; namespace ABC169 { class C { static void Main(string[] args) { // var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArr...
using System; using System.Linq; using System.Collections.Generic; namespace ABC169 { class C { static void Main(string[] args) { // var A = Console.ReadLine().Split().Select(long.Parse).ToArray(); // var CA = Enumerable.Repeat(0, (int)N).Select(_ => // Console.ReadLine().Split().Select(long.Parse).ToArr...
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199]]
8
85
using System; using System.Linq; public class Test { public static void Main() { var x = Console.ReadLine().Split().ToArray(); long a = long.Parse(x[0]); double c = double.Parse(x[1]); c *= 100; long b = (long)c; long ans = a * b; ans /= 100; Console.WriteLine(ans); } }
using System; using System.Linq; public class Test { public static void Main() { var x = Console.ReadLine().Split().ToArray(); long a = long.Parse(x[0]); decimal c = decimal.Parse(x[1]); c *= 100; long b = (long)c; long ans = a * b; ans /= 100; 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
94
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var AB = Console.ReadLine().Split(); long A = long.Parse(AB[0]); double B = double.Parse(AB[1]); double ans = Math.Floor(A * B); Console.WriteLine(ans); } }
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var AB = Console.ReadLine().Split(); long A = long.Parse(AB[0]); decimal B = decimal.Parse(AB[1]); var ans = Math.Floor(A * B); 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, 196, 0, 197, 0, 198, 39, 216, 0, 217]]
8
85
using System; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var sp = Console.ReadLine().Split(' '); var a = long.Parse(sp[0]); ...
using System; namespace AtCoder.Abc { class QuestionC { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var sp = Console.ReadLine().Split(' '); var a = decimal.Parse(sp[0]); ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
123
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { string[] s = ReadLine().Split(' ').ToArray(); double A = double.Parse(s[0]); double B = double.Parse(s[1]); WriteLine(Math.Floor(A * B)); } } }
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { string[] s = ReadLine().Split(' ').ToArray(); decimal A = decimal.Parse(s[0]); decimal B = decimal.Parse(s[1]); WriteLine(Math.Truncate(A * B)); } } }
[["-", 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], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22]]
8
92
using System; namespace ABC { public class C { static void Main() { string[] input = Console.ReadLine().Split(' '); double A = double.Parse(input[0]); double B = double.Parse(input[1]); double C = A * B; double D = Math.Floor(C); Console.WriteLine(D); } } }
using System; namespace ABC { public class C { static void Main() { string[] input = Console.ReadLine().Split(' '); decimal A = decimal.Parse(input[0]); decimal B = decimal.Parse(input[1]); decimal C = A * B; decimal D = Math.Floor(C); Console.WriteLine(D); } } }
[["-", 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
87
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; using System.IO; namespace paiza { class Program { static void Main(string[] args) { var A = GetLong(); var B = GetDouble(); long Bd = (long)(B + 0.001) * 100; long ans ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Linq; using static MyIO; using System.IO; namespace paiza { class Program { static void Main(string[] args) { var A = GetLong(); var B = GetDouble(); long Bd = (long)((B + 0.001) * 100); long an...
[["+", 0, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 25]]
8
385
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.At_Coder_Beginner_Contest_169 { class C { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); double...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.At_Coder_Beginner_Contest_169 { class C { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long A = long.Parse(input[0]); decima...
[["-", 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
106
using System; using System.Linq; namespace ABC169C { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(double.Parse).ToArray(); var A = AB[0]; var B = AB[1]; Console.WriteLine(Math.Truncate(A * B).ToString("0")); } } }
using System; using System.Linq; namespace ABC169C { class Program { static void Main(string[] args) { var AB = Console.ReadLine().Split().Select(decimal.Parse).ToArray(); var A = AB[0]; var B = AB[1]; Console.WriteLine(Math.Truncate(A * B).ToString("0")); } } }
[["-", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 205, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
88
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProconTemplate { // https://atcoder.jp/contests/abc141/tasks/abc141_c class abc169_b { public static void Main(string[] args) { // string s = Console.ReadLine(); string[] asInput = C...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProconTemplate { // https://atcoder.jp/contests/abc141/tasks/abc141_c class abc169_b { public static void Main(string[] args) { // string s = Console.ReadLine(); string[] asInput = C...
[["-", 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
111
using System; using System.Linq; class Program { static void Main(string[] args) { string[] ab = Console.ReadLine().Split(' '); long a = long.Parse(ab[0]); double b = double.Parse(ab[1]); double res = a * b; Console.WriteLine((long)res); } }
using System; using System.Linq; class Program { static void Main(string[] args) { string[] ab = Console.ReadLine().Split(' '); long a = long.Parse(ab[0]); decimal b = decimal.Parse(ab[1]); decimal res = a * b; Console.WriteLine((long)res); } }
[["-", 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
84
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.IO.Enumeration; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threadin...
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.IO.Enumeration; using System.Linq; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threadin...
[["+", 0, 212, 0, 74, 51, 23, 0, 213, 63, 22], ["+", 0, 74, 51, 23, 0, 213, 3, 4, 0, 24], ["-", 0, 212, 0, 74, 51, 23, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 200, 0, 212, 0, 74, 51, 23, 0, 25], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203]]
8
2,670
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { double[] nm = Array.ConvertAll(System.Console.ReadLine().Split(' '), double.Parse); long n = (long)nm[0]; int m = (int)(nm[1] * 100); System.Console.WriteLine(n * m / 100); } } }
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { decimal[] nm = Array.ConvertAll(System.Console.ReadLine().Split(' '), decimal.Parse); long n = (long)nm[0]; int m = (int)(nm[1] * 100); System.Console.WriteLine(n * m / 100); } } }
[["-", 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
90
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] Input = Console.ReadLine().Split(' '); double A = double.Parse(Input[0]); double B = double.Parse(Input[1]); Console.WriteLin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { string[] Input = Console.ReadLine().Split(' '); decimal A = decimal.Parse(Input[0]); decimal B = decimal.Parse(Input[1]); Console.Writ...
[["-", 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
100
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var t = ReadTexts...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace AtCoder.C { public class Program { public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); } private static object GetResult() { var t = ReadTexts...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
391
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { var Stemp = Console.ReadLine().Split(' '); long A = long.Parse(Stemp[0]); long B = (long)(double.Parse(Stemp[1]) * 100); Console.WriteLine((long)Math.Floor((double)(A * B) / 1...
using System; using System.Collections; using System.Collections.Generic; class Program { static void Main(string[] args) { var Stemp = Console.ReadLine().Split(' '); long A = long.Parse(Stemp[0]); long B = (long)(Decimal.Parse(Stemp[1]) * 100); Console.WriteLine((long)Math.Floor((Decimal)(A * B) /...
[["-", 51, 23, 0, 16, 31, 213, 63, 214, 205, 199], ["+", 51, 23, 0, 16, 31, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 22]]
8
105
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using static System.Console; namespace ConsoleApp2 { class Program { static public decimal[] Sarray(...
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Numerics; using System.Text; using System.Threading; using System.Threading.Tasks; using static System.Console; namespace ConsoleApp2 { class Program { static public decimal[] Sarray(...
[["+", 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, 25]]
8
171
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long A = long.Parse(str[0]); double B = double.Parse(str[1]); long C = (long)(B * 100); long ans = A * C / 100; Console.WriteLine(ans); } }
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(); long A = long.Parse(str[0]); double B = double.Parse(str[1]); long C = (long)(B * 100 + 0.0001); long ans = A * C / 100; Console.WriteLine(ans); } }
[["+", 0, 212, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 0, 212, 0, 74, 51, 23, 0, 16, 12, 250]]
8
94
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var r = ReadSplit(); var a = r[0].Double(); var b...
using System; using System.Collections.Generic; using System.Windows; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder { public class Program { private static long mod = 1000000007; static void Main(string[] args) { var r = ReadSplit(); var a = r[0].Decimal(); var ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212...
8
673
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var line = ReadLine().Split(' ').Select(value => double.Parse(value)).ToArray(); WriteLine((long)(line[0...
using static System.Math; using static System.Console; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var line = ReadLine().Split(' ').Select(value => decimal.Parse(value)).ToArray(); WriteLine((long)(line[...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
96
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...
[["-", 3, 4, 0, 28, 0, 16, 31, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 16, 31, 213, 63, 22], ["-", 3, 4, 0, 28, 0, 16, 12, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 16, 12, 213, 63, 22]]
8
699
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Security.Cryptography; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black =...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Security.Cryptography; class Program { const string Yes = "Yes"; const string No = "No"; const char White = '.'; const char Black =...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
269
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class362 { static void Main() { long N = long.Parse(Console.ReadLine()); var dic = new Dictionary<long, int>(); for (long i = 2; i <= (int)Math.Sqrt(N); i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class362 { static void Main() { long N = long.Parse(Console.ReadLine()); var dic = new Dictionary<long, int>(); for (long i = 2; i <= (int)Math.Sqrt(N); i++) ...
[["-", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 39, 199]]
8
209
using System; namespace atcoder_practice1 { class _169D { static void Main() { long N; int count; int answer = 0; string x = Console.ReadLine(); N = long.Parse(x); long max_iter = (long)Math.Sqrt(N); for (long i = 2; i <= max_iter; i++) { count = 0; while (N % i == 0) { ...
using System; namespace atcoder_practice1 { class _169D { static void Main() { long N; int count; int answer = 0; string x = Console.ReadLine(); N = long.Parse(x); long max_iter = (long)Math.Sqrt(N); for (long i = 2; i <= max_iter; i++) { count = 0; while (N % i == 0) { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32...
8
141
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleAppTest { class DivGame { static void Main(string[] args) { ulong num = ulong.Parse(Console.ReadLine()); // ulong num = 4; ulong checkNum = (ulong)Math.Sqrt(num); int ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleAppTest { class DivGame { static void Main(string[] args) { ulong num = ulong.Parse(Console.ReadLine()); // ulong num = 24; ulong checkNum = (ulong)Math.Sqrt(num); int...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 57, 75, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 57, 15, 16, 17, 47], ["+",...
8
189
using System; using System.Collections.Generic; namespace ABC169test { class Program { static void Main(string[] args) { long N = Convert.ToInt64(Console.ReadLine()); if (N == 1) { Console.WriteLine(0); return; } // Prime.soinsuu(N); var list = Prime.PrimeFactors(N); var list2 = n...
using System; using System.Collections.Generic; namespace ABC169test { class Program { static void Main(string[] args) { long N = Convert.ToInt64(Console.ReadLine()); if (N == 1) { Console.WriteLine(0); return; } // Prime.soinsuu(N); var list = Prime.PrimeFactors(N); var list2 = n...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
432
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Abc { internal class QuestionD { 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 { internal class QuestionD { public static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false };...
[["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 47]]
8
292
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Numerics; using System.IO; using System.Net; namespace Practice { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203]]
8
2,590
using System; using System.Collections.Generic; namespace ProblemD { class Program { static void Main() { long N = long.Parse(Console.ReadLine()); var list = new List<long>(); if (N == 1) { Console.WriteLine(0); return; } else { foreach (long factor in PrimeFactors(N)) { li...
using System; using System.Collections.Generic; namespace ProblemD { class Program { static void Main() { long N = long.Parse(Console.ReadLine()); var list = new List<long>(); if (N == 1) { Console.WriteLine(0); return; } else { foreach (long factor in PrimeFactors(N)) { li...
[["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 203]]
8
274
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...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22]]
8
11,977
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.ABC169 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var n = NextLong(); var count = 0; var f = Math.Floor(Math.Sqrt((double)n)); for (int i = 2; ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder.Contests.ABC169 { /// <summary> /// /// </summary> static class D { static void Main(string[] args) { var n = NextLong(); var count = 0; var f = Math.Floor(Math.Sqrt((double)n)); for (int i = 2; ...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 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
616
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.E { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder.Contest.E { static class Program { public static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = ...
[["+", 0, 200, 0, 212, 0, 16, 31, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 25], ["+", 0, 212, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 31, 74, 0, 24]]
8
659
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class363 { static void Main() { int N = int.Parse(Console.ReadLine()); var A = new int[N]; var B = new int[N]; for (int i = 0; i < N; i++) { var ab ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp15 { class Class363 { static void Main() { int N = int.Parse(Console.ReadLine()); var A = new int[N]; var B = new int[N]; for (int i = 0; i < N; i++) { var ab ...
[["-", 0, 16, 31, 16, 31, 213, 63, 214, 205, 22], ["-", 0, 16, 31, 16, 31, 213, 63, 214, 0, 131], ["-", 0, 16, 31, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 39, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 74, 0, 25], ["+", 51, 23, 0, 16, 31, 16, 31, 23, 0, 24], ...
8
271
using System; using System.Collections.Generic; using System.Linq; public class Solution { static double Median(long[] x) { x = x.OrderBy(xx => xx).ToArray(); var n = x.Length; if (n % 2 == 0) { return (x[n / 2 - 1] + x[n / 2]) / 2; } else { return x[n / 2]; } } public static voi...
using System; using System.Collections.Generic; using System.Linq; public class Solution { static double Median(long[] x) { x = x.OrderBy(xx => xx).ToArray(); var n = x.Length; if (n % 2 == 0) { return (x[n / 2 - 1] + (double)x[n / 2]) / 2; } else { return x[n / 2]; } } public st...
[["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 39, 199], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 25]]
8
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemE { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = new List<int>(); var Bs = new List<int>(); for (int i = 0; i < N;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProblemE { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var As = new List<int>(); var Bs = new List<int>(); for (int i = 0; i < N;...
[["-", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22]]
8
304
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder2 { class Program { static void Main(string[] args) { var inputArray = retreiveLongArray(); var inputCount = 1; // 不正な入力は処理しない if (inputArray.Length != inputCount) { ...
[["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 57, 64, 196, 0, 37, 0, 16, 12, 203], ["+", 0, 57, 64, 196, 0, 37, 0, 16, 12, 250]]
8
388
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[][] A = new int [N][]; for (var i = 0; i < N; i++) { A[i] = new int[2]; } for (var i = 0; i < N; i++) { string[] str = Console.ReadLine().Split()...
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[][] A = new int [N][]; for (var i = 0; i < N; i++) { A[i] = new int[2]; } for (var i = 0; i < N; i++) { string[] str = Console.ReadLine().Split()...
[["-", 0, 11, 12, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 16, 31, 16, 12, 23, 0, 16, 12, 22]]
8
346
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Numerics; using System.Threading; using static System.Math; using static System.Array; using static AtCoder.IO_ShortCut; using static AtCoder.Tool; using static AtCoder.ModInt; namespace AtCoder { class A...
[["-", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 203]]
8
1,870
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; static class Program { const int mod = (int)1e9 + 7; const double eps = 1e-...
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; static class Program { const int mod = 998244353; const double eps = 1e-11;...
[["-", 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, 200, 0, 212, 0, 16, 31, 74, 51, 250], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 0, 124, 0, 198, 0, 200, 0, 212, 0, 2...
8
1,671
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) { //問題クラスを展開 ProgramF a = new ProgramF(); 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) { //問題クラスを展開 ProgramF a = new ProgramF(); a.main(); //実行する } } class ProgramA { public void main() { ...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
991
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using static System.Math; namespace CSharpSpiral { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #if DEBUG ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using static System.Math; namespace CSharpSpiral { class Program { static void Main(string[] args) { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = #if DEBUG ...
[["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 19], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 22]]
8
1,476
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int m = sc.NextInt(); int h2 = sc.NextInt(); int m2 = sc.NextInt(); int k = sc.NextInt(); int mm1 = h * 60 + m; int mm2 = h2 * 60 + m; ...
using System; using System.Linq; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); int h = sc.NextInt(); int m = sc.NextInt(); int h2 = sc.NextInt(); int m2 = sc.NextInt(); int k = sc.NextInt(); int mm1 = h * 60 + m; int mm2 = h2 * 60 + m2; ...
[["-", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22]]
8
435
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { var tmp = ReadLine().Split(' ').Select(int.Parse).ToArray(); int hour1 = tmp[0], min1 = tmp[1]; int hour2 = tmp[2], min2 = tmp[3]; int k = tmp[4]; int sum = (hour...
using System; using static System.Console; using System.Linq; namespace AC { public class shiokara { static void Main(string[] args) { var tmp = ReadLine().Split(' ').Select(int.Parse).ToArray(); int hour1 = tmp[0], min1 = tmp[1]; int hour2 = tmp[2], min2 = tmp[3]; int k = tmp[4]; int sum = (hour...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 31, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 22]]
8
123
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var vals = Cons...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace contest_Csharp { class Program { static void Main(string[] args) { var sw = new System.IO.StreamWriter( Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); var vals = Cons...
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72]]
8
174
using System; using System.Collections.Generic; using System.Dynamic; 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)...
using System; using System.Collections.Generic; using System.Dynamic; 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)...
[["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 24], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 200, 0, 212, 0, 16, 31, 23, 0, 25], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72]]
8
2,121
using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; namespace AtCoder { class Program { const int BiggestMod = 1000000007; public static void Main() { ...
using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; namespace AtCoder { class Program { const int BiggestMod = 1000000007; public static void Main() { ...
[["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 16, 31, 16, 12, 23, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25]]
8
163
using System; using System.Linq; class IDONTKNOWCSHARP { public static void Main() { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (K > S.Length) { Console.WriteLine(S.Substring(0, K) + "..."); } else { Console.WriteLine(S); } } }
using System; using System.Linq; class IDONTKNOWCSHARP { public static void Main() { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (K < S.Length) { Console.WriteLine(S.Substring(0, K) + "..."); } else { Console.WriteLine(S); } // Console.ReadLine(); ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18]]
8
81
using System; namespace abc168_b { class Program { static void Main(string[] args) { var maxNum = int.Parse(Console.ReadLine()); var inputText = Console.ReadLine(); // 入力された文字列が指定文字数以上の場合切り取る Console.WriteLine(AcquireDisplayText(maxNum, inputText)); Console.Read(); } /// <summary> /// 入力さ...
using System; namespace abc168_b { class Program { static void Main(string[] args) { var maxNum = int.Parse(Console.ReadLine()); var inputText = Console.ReadLine(); // 入力された文字列が指定文字数以上の場合切り取る Console.WriteLine(AcquireDisplayText(maxNum, inputText)); Console.Read(); } /// <summary> /// 入力さ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
134
using System; using System.Linq; class program { static void Main() { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); string a = ""; int len = s.Length; if (k > len) { Console.Write(s); } else { for (int i = 0; i < k; i++) { a += s[i]; } a ...
using System; using System.Linq; class program { static void Main() { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); string a = ""; int len = s.Length; if (k >= len) { Console.Write(s); } else { for (int i = 0; i < k; i++) { a += s[i]; } a...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
109
using System; class Triple_Dots { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); var str = Console.ReadLine(); int length = str.Length; string output = ""; if (input > length) { Console.WriteLine(str); } else { for (int i = 0; i < input; i++) { ...
using System; class Triple_Dots { static void Main(string[] args) { int input = int.Parse(Console.ReadLine()); var str = Console.ReadLine(); int length = str.Length; string output = ""; if (input >= length) { Console.WriteLine(str); } else { for (int i = 0; i < input; i++) { ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20]]
8
107
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); if (k > s.Length) { Console.WriteLine(s); } else { Console.WriteLine(s.Substring(0, k) + "..."); } } }
using System; class Program { static void Main(string[] args) { int k = int.Parse(Console.ReadLine()); string s = Console.ReadLine(); if (s.Length <= k) { Console.WriteLine(s); } else { Console.WriteLine(s.Substring(0, k) + "..."); } } }
[["-", 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, 17, 19], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22]]
8
79
using System; namespace b { class MainClass { public static void Main(string[] args) { var K = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); int len = S.Length; string ans = ""; if (len < K) { ans += S; } else { ans += S.Substring(0, K) + "..."; } Console.Writ...
using System; namespace b { class MainClass { public static void Main(string[] args) { var K = int.Parse(Console.ReadLine()); var S = Console.ReadLine(); int len = S.Length; string ans = ""; if (len <= K) { ans += S; } else { ans += S.Substring(0, K) + "..."; } Console.Wri...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
96
using System; namespace atcorder { class Program { static void Main() { var k = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (s.Length <= k) { Console.WriteLine(s); } else { Console.WriteLine(s.Substring(0, 7) + "..."); } } } }
using System; namespace atcorder { class Program { static void Main() { var k = int.Parse(Console.ReadLine()); var s = Console.ReadLine(); if (s.Length <= k) { Console.WriteLine(s); } else { Console.WriteLine(s.Substring(0, k) + "..."); } } } }
[["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 22]]
8
79
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] arg) { // string[] input = Console.ReadLine().Split(' '); int K = int.Parse(Console.ReadLine()); string n = Console.ReadLine(); if (n.Length < K) { Console.WriteLine(n); return; ...
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] arg) { // string[] input = Console.ReadLine().Split(' '); int K = int.Parse(Console.ReadLine()); string n = Console.ReadLine(); if (n.Length <= K) { Console.WriteLine(n); return; ...
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 19]]
8
96
using System; class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (S.Length >= K) { S = S.Substring(0, K) + "..."; } Console.WriteLine(S); } }
using System; class Program { static void Main(string[] args) { int K = int.Parse(Console.ReadLine()); string S = Console.ReadLine(); if (S.Length > K) { S = S.Substring(0, K) + "..."; } Console.WriteLine(S); } }
[["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 47]]
8
73