buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int n = sc.intarr[0]; int[] array = sc.intarr; Array.Sort(array); ...
using System; using System.Linq; using System.Collections.Generic; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { Scan sc = new Scan(); write wr = new write(); int n = sc.intarr[0]; int[] array = sc.intarr; Array.Sort(array); ...
[["+", 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
311
5
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARC091B { class Program { static void Main(string[] args) { long[] input = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long N = input[0]; long K = ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARC091B { class Program { static void Main(string[] args) { long[] input = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray(); long N = input[0]; long K = ...
[["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 75, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 75, 196, 0, 7, 15, 16, 17, 19]]
8
191
4
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var m = int.Parse(Console.ReadLine()); if (m >= 3) { Console.WriteLine(m % 3); } else { Console.WriteLine(0); } } } }
using System; using System.Collections.Generic; using System.Linq; namespace ziyuutyou { class Program { static void Main(string[] args) { var m = int.Parse(Console.ReadLine()); if (m >= 3) { Console.WriteLine(m / 3); } else { Console.WriteLine(0); } } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
75
2
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n % 3); } } }
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n / 3); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
45
2
using System; namespace AtCoder.ABC089 { public class A { public static void Solve() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); Console.WriteLine(a % 3); } } } namespace AtCoder { class Program { static void Main(string[] args) { ABC089.A.Solve(); }...
using System; namespace AtCoder.ABC089 { public class A { public static void Solve() { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); Console.WriteLine(a / 3); } } } namespace AtCoder { class Program { static void Main(string[] args) { ABC089.A.Solve(); } ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
89
2
using System; public class Hello { public static void Main() { int n = int.Parse(System.Console.ReadLine()); System.Console.WriteLine(n % 3); } }
using System; public class Hello { public static void Main() { int n = int.Parse(System.Console.ReadLine()); System.Console.WriteLine(n / 3); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
43
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder1_A { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n % 3); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atcoder1_A { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n / 3); } } }
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
69
2
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int N = Cin(); Console.WriteLine(N % 3); } } public class Atcoder { static void Swap<T>(ref T a, ref T b) ...
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { int N = Cin(); Console.WriteLine(N / 3); } } public class Atcoder { static void Swap<T>(ref T a, ref T b) ...
[["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 109], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 85]]
8
304
2
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); List<string> s = ReadLine().Split().ToList().ConvertAll(x => x.ToString()); var hashSet = new HashSet<string>(s); if (s.Count...
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); List<string> s = ReadLine().Split().ToList().ConvertAll(x => x.ToString()); var hashSet = new HashSet<string>(s); if (hashSet...
[["-", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 205, 22]]
8
116
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); if (cin.ReadIntArray(n).Distinct().Count() == 3) Console.WriteLine("T...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.B { static class Program { public static void Solve(Scanner cin) { int n = cin.ReadInt(); if (cin.ReadStringArray(n).Distinct().Count() == 3) Console.WriteLine...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22]]
8
2,665
2
using System; using System.Collections.Generic; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); var hs = new HashSet<char>(); int n = sc.NextInt(); for (int i = 0; i < n; i++) { hs.Add(sc.NextChar()); } if (hs.Count == 3) { Console.WriteL...
using System; using System.Collections.Generic; using CompLib.Util; public class Program { public void Solve() { var sc = new Scanner(); var hs = new HashSet<char>(); int n = sc.NextInt(); for (int i = 0; i < n; i++) { hs.Add(sc.NextChar()); } if (hs.Count == 3) { Console.WriteL...
[["-", 8, 196, 0, 57, 15, 16, 12, 252, 0, 104]]
8
450
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStr(); var ans = ""; if (S.Distinct().Count() == 3) { ans = "Three"; } else { ans = "Four"; } Console.WriteLine(ans); } ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadCharArray(N); var ans = ""; if (S.Distinct().Count() == 3) { ans = "Three"; } else { ans = "Four"; } Console.WriteLine(ans)...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 212, 0, 213, 3, 4, 0, 28, 0, 22]]
8
605
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Asakatsu20200315A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary>...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Asakatsu20200315A { class Input { /// <summary> /// 1行の入力を取得する /// </summary> /// <returns>文字列</returns> public void String(out string s) { s = Console.ReadLine(); } /// <summary> /// 複数行の入力を取得 /// </summary>...
[["-", 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
1,010
4
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Collections; static class MainClass { public static void Main() { Console.ReadLine(); Co...
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Diagnostics; using System.Collections; static class MainClass { public static void Main() { Console.ReadLine(); Co...
[["-", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 0, 28, 0, 218, 8, 16, 12, 252, 0, 104], ["+", 0, 28, 0, 218, 8, 16, 12, 5, 0, 62]]
8
1,256
6
using static System.Console; namespace For_Atcoder { class Program { static void Main(string[] args) { ReadLine(); WriteLine(ReadLine().IndexOf("Y") >= 0 ? "Four" : "There"); } } }
using static System.Console; namespace For_Atcoder { class Program { static void Main(string[] args) { ReadLine(); WriteLine(ReadLine().IndexOf("Y") >= 0 ? "Four" : "Three"); } } }
[["-", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222], ["+", 3, 4, 0, 28, 0, 41, 75, 5, 0, 222]]
8
53
2
using System; using System.Collections.Generic; using System.Linq; namespace Competitive { internal class Solution { public void Run() { int H, W, D; { bool isFour = Console.ReadLine().Split(' ').Any(s => s == "Y"); Console.WriteLine(isFour ? "Four" : "Three"); } } } internal class Program...
using System; using System.Collections.Generic; using System.Linq; namespace Competitive { internal class Solution { public void Run() { int H, W, D; { Console.ReadLine(); bool isFour = Console.ReadLine().Split(' ').Any(s => s == "Y"); Console.WriteLine(isFour ? "Four" : "Three"); } }...
[["+", 0, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 0, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 196, 0, 1, 0, 35]]
8
113
6
using System; using System.Collections.Generic; using System.Linq; namespace abc089_b { class program { static void Main(string[] args) { ChangeLocalDebugInput(); Console.ReadLine(); string[] s = Console.ReadLine().Split(' '); List<string> sl = new List<string>(); sl.AddRange(s); int num = ...
using System; using System.Collections.Generic; using System.Linq; namespace abc089_b { class program { static void Main(string[] args) { ChangeLocalDebugInput(); Console.ReadLine(); string[] s = Console.ReadLine().Split(' '); List<string> sl = new List<string>(); sl.AddRange(s); int num = ...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 222]]
8
174
4
using System; using System.Linq; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string ans = (Console.ReadLine().IndexOf("Y") > 0) ? "Four" : "Three"; Console.WriteLine(ans); } }
using System; using System.Linq; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); // スペース区切りの整数の入力 string ans = (Console.ReadLine().IndexOf("Y") >= 0) ? "Four" : "Three"; Console.WriteLine(ans); } }
[["-", 0, 212, 0, 41, 15, 23, 0, 16, 17, 47], ["+", 0, 212, 0, 41, 15, 23, 0, 16, 17, 20]]
8
73
2
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
using System; using System.Linq; using System.Collections.Generic; using System.IO; namespace atcorder2 { class Program { public static long Read() { return long.Parse(Console.ReadLine()); } public static long[] Reads() { return Console.ReadLine().Split().Select(long.Parse).ToArray(); } static void Main...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]]
8
382
6
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); List<string> s = new List<string>(); for (int i = 0; i < n; i++) { s.Add(ReadLine()); } List<int> ans = new List<...
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); List<string> s = new List<string>(); for (int i = 0; i < n; i++) { s.Add(ReadLine()); } List<long> ans = new List...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
380
4
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static char[] CH = new char[5] { 'M', 'A', 'R', 'C', 'H' }; static void Main() { int N = RInt(); var dic = new Dictionary<char, int>(); dic.Add('M', 0); ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; using static System.Math; class MainClass : Scanner { static char[] CH = new char[5] { 'M', 'A', 'R', 'C', 'H' }; static void Main() { int N = RInt(); var dic = new Dictionary<char, long>(); dic.Add('M', 0);...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
1,340
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC089C { static public void Solve() { var N = NN; var SList = NSList(N); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using static System.Math; using System.Text; using System.Threading; namespace Program { public static class ABC089C { static public void Solve() { var N = NN; var SList = NSList(N); ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
7,639
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int[] names = new int[5]; for (int i = 0; i < n; i++) { string name = sc.Next(); if (name.StartsWith("M")) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); int n = sc.NextInt(); int[] names = new int[5]; for (int i = 0; i < n; i++) { string name = sc.Next(); if (name.StartsWith("M")) { ...
[["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203]]
8
607
2
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { const string Yes = "Yes"; const string No = "No"; const long Mod = 1000000007; static void Main(string[] args) { #if DEBUG ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
536
2
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var m = 0; var a = 0; var r = 0; var c = 0; var h = 0; for (int i = 0; i < N; i...
using System; using System.Collections.Generic; using System.Linq; class Program { static Scanner sc = new Scanner(); static void Main(string[] args) { var N = sc.ReadInt(); var S = sc.ReadStrArray(N); var m = 0L; var a = 0L; var r = 0L; var c = 0L; var h = 0L; for (int i = 0; i <...
[["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
1,359
12
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { var N = GetInt(); Dictionary<char, int> march = new Dictionary<char, int>(); var C = new char[] { 'M', 'A', 'R', 'C', 'H' };...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { static class Program { static void Main() { var N = GetInt(); Dictionary<char, long> march = new Dictionary<char, long>(); var C = new char[] { 'M', 'A', 'R', 'C', 'H' ...
[["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
927
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp93 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var S = new string[N]; var num_array = new int[5]; for (int i = 0; i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp93 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var S = new string[N]; var num_array = new int[5]; for (int i = 0; i...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
311
5
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main() { int N = int.Parse(Console.ReadLine()); string[] S = new string[N]; for (var i = 0; i < N; i++) { S[i] = Console.ReadLine(); } int[] march = { 0, 0, 0, 0, 0 }; for (var i = 0; i < N...
using System; using System.Collections.Generic; namespace MyProgram { class AtCoder { static void Main() { int N = int.Parse(Console.ReadLine()); string[] S = new string[N]; for (var i = 0; i < N; i++) { S[i] = Console.ReadLine(); } long[] march = { 0, 0, 0, 0, 0 }; for (var i = 0; i < ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]]
8
272
2
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using static System.Console; using static System.Math; namespace abc_91_c { class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[][] red = new int ...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using static System.Console; using static System.Math; namespace abc_91_c { class Program { static void Main(string[] args) { int n = int.Parse(ReadLine()); int[][] red = new int ...
[["-", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 12, 204, 205, 204, 206, 207, 0, 28, 0, 22]]
8
334
4
using System.Linq; using System; public class P { public int x { get; set; } public int y { get; set; } public bool del { get; set; } } public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var red = setArray(n); var blue = setArray(n); var count = 0; ...
using System.Linq; using System; public class P { public int x { get; set; } public int y { get; set; } public bool del { get; set; } } public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var red = setArray(n); var blue = setArray(n); var count = 0; ...
[["-", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22], ["+", 3, 4, 0, 28, 0, 218, 8, 214, 141, 22]]
8
287
2
using System; using System.Collections; using System.Collections.Generic; class Program { public static int N; public static List<int>[] list = new List<int>[110]; static void Main(string[] args) { int[] rx = new int[110]; int[] ry = new int[110]; int[] bx = new int[110]; int[] by = new int[110];...
using System; using System.Collections; using System.Collections.Generic; class Program { public static int N; public static List<int>[] list = new List<int>[110]; static void Main(string[] args) { int[] rx = new int[110]; int[] ry = new int[110]; int[] bx = new int[110]; int[] by = new int[110];...
[["+", 8, 196, 0, 57, 64, 196, 0, 197, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22], ["+", 64, 196, 0, 1, 0, 11, 12, 204, 205, 22]]
8
610
4
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var a = ReadStringToCharArray(); var b = ReadStringToCharArray(); var c = ReadStringToCharArray(); Console.WriteLine(a[0] + b[1] + c[2]); } static int[] ReadIn...
using System; using System.Collections.Generic; using System.Linq; namespace Atcoder { class Program { static void Main(string[] args) { var a = ReadStringToCharArray(); var b = ReadStringToCharArray(); var c = ReadStringToCharArray(); Console.WriteLine("{0}{1}{2}", a[0], b[1], c[2]); } static i...
[["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72]]
8
134
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; class Myon { public Myon() {} public static int Main() { new Myon().calc(); return 0; } Scanner cin; Func cin2; void calc() { cin = new...
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72]]
8
730
3
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var a = Read(); var b = Read(); var c = Read(); Println($"{a[1]}{b[1]}{c[1]}"); } static List<long> R...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; namespace ConsoleApp1 { class Program { static void Main(string[] args) { A(); } static void A() { var a = Read(); var b = Read(); var c = Read(); Println($"{a[0]}{b[1]}{c[2]}"); } static List<long> R...
[["-", 0, 284, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 284, 0, 204, 206, 207, 0, 28, 0, 203]]
8
676
4
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string input= Console.ReadLine(); string[] input = new...
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; class Program { static void Main() { //入力 // int[] input = Console.ReadLine().Split().Select(i => // int.Parse(i)).ToArray(); string input= Console.ReadLine(); string[] input = new...
[["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]]
8
126
5
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { string s0 = Console.ReadLine(); string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); Console...
using System; using System.Collections.Generic; using System.Linq; using static Atcoder; using System.Threading.Tasks; using System.ComponentModel; public class Hello { public static void Main() { string s0 = Console.ReadLine(); string s1 = Console.ReadLine(); string s2 = Console.ReadLine(); Console...
[["+", 0, 16, 31, 16, 31, 16, 31, 5, 0, 62], ["+", 0, 28, 0, 16, 31, 16, 31, 16, 17, 72]]
8
335
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLi...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
8
340
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var s = ReadLine(); var d = ReadLine(); var f = ReadLine(); WriteLine(s[0] + d[1] + f[2]); } }
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var s = ReadLine(); var d = ReadLine(); var f = ReadLine(); WriteLine(s[0] + "" + d[1] + f[2]); } }
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72]]
8
71
3
using System; namespace AtCoder { internal static class Program { private static void Main() { int[] AB = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int res = 0; for (int i = 0; i < AB[1] - AB[0]; i++) { string temp = (i + AB[0]).ToString(); bool palindrome = true; for (i...
using System; namespace AtCoder { internal static class Program { private static void Main() { int[] AB = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); int res = 0; for (int i = 0; i < AB[1] - AB[0] + 1; i++) { string temp = (i + AB[0]).ToString(); bool palindrome = true; fo...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]]
8
151
2
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split(' ...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using Console = System.Console; namespace Atcoder { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split(' ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
173
2
using System; namespace ABC090 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 0; string s; for (int i = A; i < B; i++) { s = i.ToString(); if (s[0] == s[s.Length - ...
using System; namespace ABC090 { class B { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); int A = int.Parse(input[0]); int B = int.Parse(input[1]); int count = 0; string s; for (int i = A; i <= B; i++) { s = i.ToString(); if (s[0] == s[s.Length -...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
137
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var ab = ReadInts(); var ans = 0; for (int i = ab[0]; i < ab[1]; i++) { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtCoder { class Program { static void Main(string[] args) { var ab = ReadInts(); var ans = 0; for (int i = ab[0]; i <= ab[1]; i++) { ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
608
2
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int cnt = 0; ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MyProgram { public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int cnt = 0; ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
199
2
using System; namespace ABC090_B_Palindromic_Numbers { internal class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int count = 0; for (int i = a; i <= b; i++) { string firstword ...
using System; namespace ABC090_B_Palindromic_Numbers { internal class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int a = int.Parse(input[0]); int b = int.Parse(input[1]); int count = 0; for (int i = a; i <= b; i++) { string firstword ...
[["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 12, 22]]
8
175
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var A = input[0]; var B = input[1];...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var A = input[0]; var B = input[1];...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
156
2
using System; using System.Linq; using System.Diagnostics; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; for (int i = a[0]; i < a[1]; i++) { var s = i.ToString(); if (s[0] == s[4] && s[1] == s[3])...
using System; using System.Linq; using System.Diagnostics; using System.Collections.Generic; class P { static void Main() { int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray(); int res = 0; for (int i = a[0]; i <= a[1]; i++) { var s = i.ToString(); if (s[0] == s[4] && s[1] == s[3]...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
125
2
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var n = ReadLine().Split().Select(int.Parse).ToArray(); int c = 0; for (int i = n[0]; i <= n[1]; i++) { var s = n.ToString(); if (s[0] == s[4] && s[1] == s[3]) ...
using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var n = ReadLine().Split().Select(int.Parse).ToArray(); int c = 0; for (int i = n[0]; i <= n[1]; i++) { var s = i.ToString(); if (s[0] == s[4] && s[1] == s[3]) ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22]]
8
120
2
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, m) = cin.ReadValue<int, int>(); Console.WriteLine(Math.Abs((n - 2) * (m - 2))); } p...
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace FertiLib.Contest.C { static class Program { public static void Solve(Scanner cin) { var (n, m) = cin.ReadValue<long, long>(); Console.WriteLine(Math.Abs((n - 2) * (m - 2))); } ...
[["-", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199], ["+", 0, 213, 63, 214, 141, 236, 237, 238, 0, 199]]
8
2,658
4
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; long ans = 0; if (N == 1 && M == 1) ans = 1; if (N == 1 || M == 1) ...
using System; using System.Collections.Generic; using System.Linq; class Program { public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = input[0]; int M = input[1]; long ans = 0; if (N == 1 && M == 1) ans = 1; else if (N == 1 || M == 1)...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 57, 0, 95]]
8
142
2
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]]
8
199
2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using static System.Console; using static System.Math; namespace Atcoder { class Program { static StreamWriter sw = new StreamWriter(OpenStandardOutput()) { AutoFlush = ...
[["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22]]
8
564
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long m = sc.NextLong(); long answer = 0; if (n == 1 && m == 1) { answer = 1; } else if (n == 1) { a...
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class AtCoderA { static void Main() { var sc = new Scanner(); long n = sc.NextLong(); long m = sc.NextLong(); long answer = 0; if (n == 1 && m == 1) { answer = 1; } else if (n == 1) { a...
[["-", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203], ["+", 0, 57, 75, 57, 75, 57, 15, 16, 12, 203]]
8
429
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number)); var n = t[0] == 1 ? 1 : t[0] - 2; var m = t[1] == 1 ? 1 : t[1] - 2; Con...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var t = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => long.Parse(number)); var n = t[0] == 1 ? 1 : t[0] - 2; var m = t[1] == 1 ? 1 : t[1] - 2; Co...
[["-", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199], ["+", 0, 28, 0, 218, 8, 213, 63, 214, 205, 199]]
8
115
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp93 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = st[0]; int M = st[1]; if (N >= 2 && ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp93 { class Program { static void Main(string[] args) { var st = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = st[0]; int M = st[1]; if (N >= 2 && ...
[["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 24]]
8
154
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Program { #region library static int n = 0; static int m = 0; static int r = 0; static int c = 0; static int x = 0; static int y = 0; static string s = ""; static string[] ss; static long sum = 0; static long ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
1,268
4
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Flip,Flip, and Flip...... var line = ReadLine(); int N = line[0]; int M = line[1]; long ans; if (N == 2 | M == 2) { ans = 0; } els...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { static void Main(string[] args) { //[summary]C - Flip,Flip, and Flip...... var line = ReadLine(); long N = line[0]; long M = line[1]; long ans; if (N == 2 | M == 2) { ans = 0; } e...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
189
4
using System; class C { static void Main() { var h = Array.ConvertAll(Console.ReadLine().Split(), int.Parse); Console.WriteLine(Math.Abs((h[0] - 2) * (h[1] - 2))); } }
using System; class C { static void Main() { var h = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); Console.WriteLine(Math.Abs((h[0] - 2) * (h[1] - 2))); } }
[["-", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199], ["+", 0, 213, 3, 4, 0, 28, 0, 214, 205, 199]]
8
64
2
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var NM = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var N = NM[0]; var M = NM[1]; if (N > 2 ...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static void Main(string[] args) { //入力を受け取る var NM = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToArray(); var N = NM[0]; var M = NM[1]; if (N > 2 ...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
188
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadInt(); var M = sc.ReadInt(); if (N > M) { var tmp = N; N = M; M = tmp; } if (N == 1 && M == 1) { Console.WriteLine(1); return; } e...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var N = sc.ReadLong(); var M = sc.ReadLong(); if (N > M) { var tmp = N; N = M; M = tmp; } if (N == 1 && M == 1) { Console.WriteLine(1); return; }...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
696
4
using System; public class Program { public void Solve() { var sc = new Scanner(); int n = sc.NextInt(); int m = sc.NextInt(); Console.WriteLine(n == 1 ? (m == 1 ? 1 : m - 2) : (m == 1 ? n - 2 : (n - 2) * (m - 2))); } public static void Main(string[] args) { new Pro...
using System; public class Program { public void Solve() { var sc = new Scanner(); long n = sc.NextInt(); long m = sc.NextInt(); Console.WriteLine(n == 1 ? (m == 1 ? 1 : m - 2) : (m == 1 ? n - 2 : (n - 2) * (m - 2))); } public static void Main(string[] args) { new P...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
522
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Contest { class Scanner { private string[] line = new string[0]; private int index = 0; public string Next() { if (line.Length <= index) { line = Console.ReadLi...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199]]
8
377
2
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text.RegularExpressions; using System.Text; using System.Diagnostics; using static System.Math; using static System.Array; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { cl...
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text.RegularExpressions; using System.Text; using System.Diagnostics; using static System.Math; using static System.Array; // var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); namespace AtCoderSolve { cl...
[["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["+", 0, 235, 8, 201, 0, 124, 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
289
4
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { class QuestionC { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = int.Parse(input[0]); long m = int.Parse(input[1]); double result = 0; if (n == 1 && m == 1) ...
using System; using System.Collections.Generic; using System.Text; namespace AtCoder { class QuestionC { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); long n = int.Parse(input[0]); long m = int.Parse(input[1]); long result = 0; if (n == 1 && m == 1) { ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
150
2
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = l[0], M = l[1]; var ans = 0L; if (N == 1 && M == 1) ans = 1; else if (N == 1 &&...
using System; using System.Linq; using System.Collections.Generic; namespace Algorithm { class Program { static void Main(string[] args) { var l = Console.ReadLine().Split().Select(int.Parse).ToArray(); long N = l[0], M = l[1]; var ans = 0L; if (N == 1 && M == 1) ans = 1; else if (N == 1 &...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
158
2
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC090.C { using static Util; public class Solver : SolverBase { public void Run() { var ary = ReadLongArray(); var N = ary[0]; var M = ary[1]; var minS = Math.Min(N, M); var ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ABC090.C { using static Util; public class Solver : SolverBase { public void Run() { var ary = ReadLongArray(); var N = ary[0]; var M = ary[1]; var minS = Math.Min(N, M); var ...
[["-", 3, 4, 0, 28, 0, 16, 31, 16, 31, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 203], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
1,749
6
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
1,821
2
using System; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = int.Parse(nm[0]); var m = int.Parse(nm[1]); if (1 < n) n -= 2; if (1 < m) m -= 2; Console.WriteLine(n * m); } }
using System; class Program { static void Main(string[] args) { var nm = Console.ReadLine().Split(' '); var n = long.Parse(nm[0]); var m = long.Parse(nm[1]); if (1 < n) n -= 2; if (1 < m) m -= 2; Console.WriteLine(n * m); } }
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
89
4
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long M = long.Parse(str[1]); if (N == 1 && M == 1) Console.WriteLine(1); ...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); long N = long.Parse(str[0]); long M = long.Parse(str[1]); if (N == 1 && M == 1) Console.WriteLine(1); ...
[["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 95]]
8
144
1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_C { class C090 { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]), M = int.Parse(s[1]); long c = 0; if (N == 1) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC_C { class C090 { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]), M = int.Parse(s[1]); long c = 0; if (N == 1) { ...
[["+", 0, 1, 0, 11, 12, 16, 31, 74, 39, 199], ["+", 0, 1, 0, 11, 12, 16, 31, 74, 0, 25], ["+", 0, 11, 12, 16, 31, 74, 51, 23, 0, 24]]
8
158
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { int[] n = Console.ReadLine().Split().Select(int.Parse).ToArray(); int N = n[0]; int M = n[1]; long ans; if...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void Main(string[] args) { long[] n = Console.ReadLine().Split().Select(long.Parse).ToArray(); long N = n[0]; long M = n[1]; long ans = 0...
[["-", 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], ["+", 0, 197, 0, 198, 0, 200,...
8
194
10
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int row = nm[0] >= 2 ? (nm[0] - 2) : 1; int column = nm[1] >= 2 ? (nm[1] - 2) : 1; Console.WriteLine(row * column); } }
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { long[] nm = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long row = nm[0] >= 2 ? (nm[0] - 2) : 1; long column = nm[1] >= 2 ? (nm[1] - 2) : 1; Console.WriteLine(row * column); } }
[["-", 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
106
8
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int N = a[0]; int M = a[1]; if (N == 1 && M == 1) { Console.WriteLine(1); } else if (N == 1 || M == 1) { ...
using System; using System.Collections.Generic; using System.Linq; public class Hello { public static void Main() { var a = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); var N = a[0]; var M = a[1]; if (N == 1 && M == 1) { Console.WriteLine(1); } else if (N == 1 || M == 1) { ...
[["-", 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], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217]]
8
134
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderBS { class Program { static void Main(string[] args) { // input int[] nm = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = nm[0]; int m = nm[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoderBS { class Program { static void Main(string[] args) { // input long[] nm = Console.ReadLine().Split(' ').Select(long.Parse).ToArray(); long n = nm[0]; long m = nm[1]; ...
[["-", 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
162
8
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc91_c { class Program { static void Main(string[] args) { int[]...
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using System.Linq; using System.Diagnostics; using System.Globalization; using static System.Console; using static System.Math; namespace abc91_c { class Program { static void Main(string[] args) { long[...
[["-", 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
196
8
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var nm = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); if (nm.All(i => i == 1)) Console.WriteLine(0); else if (nm.Any(i => i == 1))...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { var nm = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); if (nm.All(i => i == 1)) Console.WriteLine(1); else if (nm.Any(i => i == 1))...
[["-", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 64, 1, 0, 213, 3, 4, 0, 28, 0, 203]]
8
136
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc090c { class Program { static void Main(string[] args) { var mn = Console.ReadLine().Split(); var n = int.Parse(mn[0]); var m = int.Parse(mn[1]); var ans = 0; if (n == ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace abc090c { class Program { static void Main(string[] args) { var mn = Console.ReadLine().Split(); var n = long.Parse(mn[0]); var m = long.Parse(mn[1]); var ans = 0L; checke...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 287, 0, 292], ["+", 0, 195, 8, 196, 0, 287, 0, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 287, 0,...
8
152
9
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = int.Parse(line[0]); var m = int.Parse(line[1]); long a; if (n == 1 && m == 1) a = 1; else if (n == 1 && m != 1) a = m - 2; else if (n != 1 && m == 1) ...
using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var n = long.Parse(line[0]); var m = long.Parse(line[1]); long a; if (n == 1 && m == 1) a = 1; else if (n == 1 && m != 1) a = m - 2; else if (n != 1 && m == 1) ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]]
8
137
4
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { public static void Main() { new Program().Solve(); } void Solve() { var tmp = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); int n = tmp[0]; int m = tmp[1]; long ans = 0; i...
using System; using System.Collections.Generic; using System.Linq; namespace AtCoder { class Program { public static void Main() { new Program().Solve(); } void Solve() { var tmp = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); long n = tmp[0]; long m = tmp[1]; long ans = 0; ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
167
4
using System; using System.IO; using System.Linq; using System.Collections.Generic; class Program { static int[] dx = new int[] { 0, 0, 1, -1 }; static int[] dy = new int[] { 1, -1, 0, 0 }; static void Solve() { var n = sc.Int(); var m = sc.Int(); if (n > 2 && m > 2) { pr.WriteLine((n - 2) * ...
using System; using System.IO; using System.Linq; using System.Collections.Generic; class Program { static int[] dx = new int[] { 0, 0, 1, -1 }; static int[] dy = new int[] { 1, -1, 0, 0 }; static void Solve() { var n = sc.Long(); var m = sc.Long(); if (n > 2 && m > 2) { pr.WriteLine((n - 2) ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22]]
8
728
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC90_3 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int N = int.Parse(s[0]); int M = int.Parse(s[1]); if (N == 1 && M == 1)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC90_3 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); long N = long.Parse(s[0]); long M = long.Parse(s[1]); if (N == 1 && M =...
[["-", 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
195
8
using System; using System.Linq; using System.Collections; class Program { public static void Main() { string[] imp = Console.ReadLine().Split(' '); int n, m; n = int.Parse(imp[0]); m = int.Parse(imp[1]); if (n == 1 && m == 1) Console.WriteLine(1); else if (n == 1) Console.WriteLin...
using System; using System.Linq; using System.Collections; class Program { public static void Main() { string[] imp = Console.ReadLine().Split(' '); int n, m; n = int.Parse(imp[0]); m = int.Parse(imp[1]); if (n == 1 && m == 1) Console.WriteLine(1); else if (n == 1) Console.WriteLin...
[["+", 3, 4, 0, 28, 0, 16, 31, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 16, 31, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 74, 51, 23, 0, 24]]
8
139
3
using System; namespace abc089_c { class Program { static void Main(string[] args) { var n = int.Parse(System.Console.ReadLine()); var march = new int[5]; for (var i = 0; i < n; i++) { var s = System.Console.ReadLine(); if (s[0] == 'M') { march[0]++; } else if (s[0] == 'A') { ...
using System; namespace abc089_c { class Program { static void Main(string[] args) { var n = int.Parse(System.Console.ReadLine()); var march = new int[5]; for (var i = 0; i < n; i++) { var s = System.Console.ReadLine(); if (s[0] == 'M') { march[0]++; } else if (s[0] == 'A') { ...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
254
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static int[] A; static void Main(string[] args) { //入力を受け取る var N = int.Parse(Console.ReadLine()); var march = new int[5]; for (int i = 0; i < N; i++) { va...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using E = System.Linq.Enumerable; class Program { static int[] A; static void Main(string[] args) { //入力を受け取る var N = long.Parse(Console.ReadLine()); var march = new long[5]; for (int i = 0; i < N; i++) { ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
273
6
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int N = int.Parse(ReadLine()); int[] names = new int[5]; char[] MARCH = new char[5] { 'M', 'A', 'R', 'C', 'H' }; ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using static System.Console; using static System.Math; class Program { static void Main(string[] args) { int N = int.Parse(ReadLine()); int[] names = new int[5]; char[] MARCH = new char[5] { 'M', 'A', 'R', 'C', 'H' }; ...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
238
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC089C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var count = new Dictionary<char, int>(); count.Add('M', 0); count.Add('A', 0...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ABC089C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var count = new Dictionary<char, long>(); count.Add('M', 0); count.Add('A', ...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
350
2
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC089C { class Program { static void Solve(Input input) { var keys = "MARCH"; var n = input.NextInt(); var map = keys.ToDictionary(x => x,...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace ABC089C { class Program { static void Solve(Input input) { var keys = "MARCH"; var n = input.NextInt(); var map = keys.ToDictionary(x => x,...
[["-", 0, 213, 3, 4, 0, 28, 0, 218, 8, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 218, 8, 203]]
8
1,312
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public static class Program { public static void Main(params string[] args) { var ary = "MARCH".ToArray(); var hash = new HashSet<Char>(ary); var n = int.Parse(Console.ReadLine()); var ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public static class Program { public static void Main(params string[] args) { var ary = "MARCH".ToArray(); var hash = new HashSet<Char>(ary); var n = int.Parse(Console.ReadLine()); var ...
[["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 24], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 39, 199], ["+", 3, 4, 0, 28, 0, 218, 8, 74, 0, 25], ["-", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199]]
8
276
5
using System; using System.Linq; namespace ABC089_C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = new string[n].Select(x => Console.ReadLine()).Distinct().ToArray(); var m = 0; var a = 0; var r = 0; var c = 0; var h = 0; foreach (va...
using System; using System.Linq; namespace ABC089_C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var s = new string[n].Select(x => Console.ReadLine()).Distinct().ToArray(); var m = 0; var a = 0; var r = 0; var c = 0; var h = 0; foreach (va...
[["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]]
8
341
2
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtC { class Program { static void Main(string[] args) { var N = ReadInt(); uint[] namesCount = { 0, 0, 0, 0, 0 }; List<char> head = new List<char> { 'M', 'A', 'R', 'C', 'H' }; for (int i = 0; i < N; i++) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtC { class Program { static void Main(string[] args) { var N = ReadInt(); ulong[] namesCount = { 0, 0, 0, 0, 0 }; List<char> head = new List<char> { 'M', 'A', 'R', 'C', 'H' }; for (int i = 0; i < N; i++)...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]]
8
607
2
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var G = (from _ in Enumerable.Repeat(0, n) let s = Console.ReadLine() where s.S...
using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var G = (from _ in Enumerable.Repeat(0, n) let s = Console.ReadLine() where s.S...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
224
3
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
using System; using System.Collections.Generic; using System.Linq; using static System.Math; using static AtCoderTemplate.MyExtensions; using static AtCoderTemplate.MyInputOutputs; using static AtCoderTemplate.MyNumericFunctions; namespace AtCoderTemplate { public class Program { public static void Main(string[] arg...
[["-", 63, 214, 205, 230, 39, 236, 237, 238, 0, 199], ["+", 63, 214, 205, 230, 39, 236, 237, 238, 0, 199]]
8
2,058
2
using System; using System.Linq; using System.Collections.Generic; public class c { public static void Main() { int n = int.Parse(Console.ReadLine()); int m = 0; int a = 0; int r = 0; int c = 0; int h = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] ==...
using System; using System.Linq; using System.Collections.Generic; public class c { public static void Main() { int n = int.Parse(Console.ReadLine()); long m = 0; long a = 0; long r = 0; long c = 0; long h = 0; for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
254
10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); var k = sc.intarr; int n = k[0]; int m = 0, a ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { Solve(); } static void Solve() { Scan sc = new Scan(); write wr = new write(); var k = sc.intarr; int n = k[0]; int m = 0, a ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199]]
8
459
2
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var dict = new Dictionary<char, int>(); for (int i = 0; i < n; i++) { var c = Console.ReadLine()[0]; switch (c) { case 'M': ...
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var dict = new Dictionary<char, int>(); for (int i = 0; i < n; i++) { var c = Console.ReadLine()[0]; switch (c) { case 'M': ...
[["-", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 0, 208, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]]
8
247
4
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); var dic = new Dictionary<char, int>(); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'M' || s[0] ...
using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); var dic = new Dictionary<char, int>(); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'M' || s[0] ...
[["-", 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, 197, 0, 198, 39, 199], ["+", 0, 57, 64, 196, 0, 197, 0, 198, 39, 199]]
8
309
4
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var diclist = new HashSet<string>[5]; var M = new HashSet<string>(); var A = new HashSet<string>(); var R = new...
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var diclist = new HashSet<string>[5]; var M = new HashSet<string>(); var A = new HashSet<string>(); var R = new...
[["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]]
8
356
3
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 line1 = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); // var N = line1[0]; // var M = line1[1]; ...
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 line1 = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); // var N = line1[0]; // var M = line1[1]; ...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]]
8
694
6
using System; using System.Collections.Generic; using System.Linq; class Program { static long ans = 0; static int[] h = new int[5]; static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'M') { h[0]++; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static long ans = 0; static long[] h = new long[5]; static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { string s = Console.ReadLine(); if (s[0] == 'M') { h[0]++; ...
[["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["+", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199], ["+", 8, 201, 0, 195, 54, 55, 0, 220, 39, 199]]
8
273
6
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); } private static int[] ReadAndParseIntArr() { return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); } private static int[] ReadAndParseIntArr() { return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)...
[["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]]
8
396
2
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); long ans = 0; Dictionary<char, int> dict = new Dictionary<char, int>(...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.IO; using System.Text; using System.Diagnostics; class Program { static void Main() { long n = int.Parse(Console.ReadLine()); long ans = 0; Dictionary<char, long> dict = new Dictionary<char, lon...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 64, 196, 0, 197, ...
8
346
10