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; class Program { static void Main() { int m; int f; int r; while (2 > 1) { string[] str = Console.ReadLine().Split(); m = int.Parse(str[0]); f = int.Parse(str[1]); r = int.Parse(str[2]); if (m == -1 || f == -1) { Console.WriteLine("F"); } els...
using System; class Program { static void Main() { int m; int f; int r; while (2 > 1) { string[] str = Console.ReadLine().Split(); m = int.Parse(str[0]); f = int.Parse(str[1]); r = int.Parse(str[2]); if (m == -1 && f == -1 && r == -1) break; if (m == -1 ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 16, 12, 241, 0, 33], ["+", 15, 16, 31, 16, 12, 16, 12, 241, 0, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, ...
8
253
using System; using System.Linq; namespace ITP1_7 { class Program { static string Check(int m, int f, int r) { return m < 0 || f < 0 ? "F" : m + f >= 65 ? "B" : m + f >= 50 || m + f >= 30 && r >= 50 ? "C" : m + f >= 30 ...
using System; using System.Linq; namespace ITP1_7 { class Program { static char Check(int m, int f, int r) { return m < 0 || f < 0 ? 'F' : m + f >= 80 ? 'A' : m + f >= 65 ? 'B' : m + f >= 50 || m + f >= ...
[["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 8, 196, 0, 37, 0, 41, 64, 5, 0, 62], ["+", 8, 196, 0, 37, 0, 41, 64, 252, 0, 104], ["+", 0, 195, 8, 196, 0, 37, 0, 41, 0, 102], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 31, 22], ["+", 0, 41, 75, 41, 15, 16, 31, 16, 17, 72...
8
184
using System; using System.Collections.Generic; public class Grading { //-1????¬??????¨????????????????????°?????????????????????????????? static void Main(string[] args) { /*---??£?¨???¨---*/ List<string> studentPointList = new List<string>(); string[] studentPointBuffer; int[] studentPoint = new ...
using System; using System.Collections.Generic; public class Grading { //-1????¬??????¨????????????????????°?????????????????????????????? static void Main(string[] args) { /*---??£?¨???¨---*/ List<string> studentPointList = new List<string>(); string[] studentPointBuffer; int[] studentPoint = new ...
[["-", 15, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17,...
8
334
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { List<List<int>> listorverlap = new List<List<int>>(); while (true) { string[] Input = Console.ReadLine().Split(' '); //??\???????????????????????...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { List<List<int>> listorverlap = new List<List<int>>(); string output = string.Empty; while (true) { string[] Input = Console.ReadLine().Split(' '); ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, ...
8
334
using System; class Program { static void Main() { while (true) { int[] num = TypeConverter.arrayStrToInt(Console.ReadLine().Split(' ')); if (num[0] == -1 || num[1] == -1) Console.WriteLine("F"); else if (num[0] + num[1] >= 80) Console.WriteLine("A"); else if (80 > num[0]...
using System; class Program { static void Main() { while (true) { int[] num = TypeConverter.arrayStrToInt(Console.ReadLine().Split(' ')); if (num[0] == -1 && num[1] == -1 && num[2] == -1) break; else if (num[0] == -1 || num[1] == -1) Console.WriteLine("F"); else if (num[0...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 12, 16, 31, 204, 205, 22], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 70], ["+", 12, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 12, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 15, 16, 31, 16, 12, 16, 1...
8
337
using System; namespace AizuOnLine { class Program { static void Main(string[] args) { while (true) { string[] data = Console.ReadLine().Split(' '); int n = int.Parse(data[0]); int x = int.Parse(data[1]); if (n == 0 && x == 0) { break; } int count = 0; for (int...
using System; namespace AizuOnLine { class Program { static void Main(string[] args) { while (true) { string[] data = Console.ReadLine().Split(' '); int n = int.Parse(data[0]); int x = int.Parse(data[1]); if (n == 0 && x == 0) { break; } int count = 0; for (int...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["+", 0, 200, 0, 212, 0, 16, 31, 16, 17, 33],...
8
165
using System; namespace ITP1 { class Program { static void Main(string[] args) { int n, x; while (true) { string[] input = Console.ReadLine().Split(' '); n = int.Parse(input[0]); x = int.Parse(input[1]); if (n == 0 & x == 0) break; int ways = 0; for (int i = n; i ...
using System; namespace ITP1 { class Program { static void Main(string[] args) { int n, x; while (true) { string[] input = Console.ReadLine().Split(' '); n = int.Parse(input[0]); x = int.Parse(input[1]); if (n == 0 & x == 0) break; int ways = 0; for (int i = n; i ...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 72], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["-",...
8
200
using System; using System.Linq; class A { static void Main(string[] args) { while (true) { int ans = 0; int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (s[0] == s[1] && s[0] == 0) { break; } for (int i = 1; i <= s[0]; i++) { for (int k = 1; k <=...
using System; using System.Linq; class A { static void Main(string[] args) { int ans; while (true) { ans = 0; int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray(); if (s[0] == s[1] && s[0] == 0) { break; } for (int i = 1; i <= s[0]; i++) { for (int k ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 31, 16...
8
181
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace StartFinish { class Program { static void Main(string[] args) { while (true) { int[] nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = nx[0]; int x = nx[1]; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace StartFinish { class Program { static void Main(string[] args) { while (true) { int[] nx = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int n = nx[0]; int x = nx[1]; ...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 31, 22], ...
8
179
using System; public class Program { public static void Main(string[] args) { var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? while (true) { var n = ss.Next<int>(); var x = ss.Next<int>(); if (n == 0 &...
using System; public class Program { public static void Main(string[] args) { var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? while (true) { var n = ss.Next<int>(); var x = ss.Next<int>(); if (n == 0 &...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6...
8
489
using System; using System.Collections.Generic; class program { static void Main() { List<int> Date = Dateinput(); int[,] ArrayDate = GetArray(Date); for (int i = 0; i < ArrayDate.GetLength(0); i++) { int Answer; Answer = Algorithm(ArrayDate[i, 0], ArrayDate[i, 1]); Console.WriteLine...
using System; using System.Collections.Generic; class program { static void Main() { List<int> Date = Dateinput(); int[,] ArrayDate = GetArray(Date); for (int i = 0; i < ArrayDate.GetLength(0); i++) { int Answer; Answer = Algorithm(ArrayDate[i, 0], ArrayDate[i, 1]); Console.WriteLine...
[["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 37, 0, 16, 12, 203]]
8
413
using System; public class Hello { public static int[] lineToInt() { string line = Console.ReadLine(); string[] strArr = line.Split(' '); int[] intArr = new int[strArr.Length]; for (int i = 0; i < intArr.Length; i++) { intArr[i] = int.Parse(strArr[i]); } return intArr; } //========...
using System; public class Hello { public static int[] lineToInt() { string line = Console.ReadLine(); string[] strArr = line.Split(' '); int[] intArr = new int[strArr.Length]; for (int i = 0; i < intArr.Length; i++) { intArr[i] = int.Parse(strArr[i]); } return intArr; } //========...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], [...
8
382
using System; using System.Linq; namespace Structured_Program_II { class Spreadsheet { static void Main(string[] args) { var size = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var sheet = new int[size[0]][]; var newsheet = new int[size[0] + 1][]; for (int i = 0; i < sh...
using System; using System.Linq; namespace Structured_Program_II { class Spreadsheet { static void Main(string[] args) { var size = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); var sheet = new int[size[0]][]; var newsheet = new int[size[0] + 1][]; for (int i = 0; i < sh...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 205, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 16, 12, 214, 141, 22], [...
8
353
using System; using System.Linq; using System.Text; class Program { static void Main() { StringBuilder ans = new StringBuilder(); byte[] l = Console.ReadLine().Split(' ').Select(byte.Parse).ToArray(); int c = l[1]; short[] cans = new short[c + 1]; for (byte i = 0; i < l[0]; i++) { byte[] o...
using System; using System.Linq; using System.Text; class Program { static void Main() { StringBuilder ans = new StringBuilder(); short[] l = Console.ReadLine().Split(' ').Select(short.Parse).ToArray(); int c = l[1]; int[] cans = new int[c + 1]; for (int i = 0; i < l[0]; i++) { short[] o =...
[["-", 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, 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,...
8
253
using System; using System.Linq; class Problem { public static void Main() { var rc = Console.ReadLine().Split().Select(int.Parse).ToArray(); var list = new int[rc[0] + 1, rc[1] + 1]; for (var i = 0; i < rc[0]; i++) { var data = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (var...
using System; using System.Linq; class Problem { public static void Main() { var rc = Console.ReadLine().Split().Select(int.Parse).ToArray(); var list = new int[rc[0] + 1, rc[1] + 1]; for (var i = 0; i < rc[0]; i++) { var data = Console.ReadLine().Split().Select(int.Parse).ToArray(); for (var...
[["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3...
8
237
using System; class program { public static void Main() { var strs = Console.ReadLine().Split(' '); var n = int.Parse(strs[0]); var m = int.Parse(strs[1]); var l = int.Parse(strs[2]); int[,] a = new int[n, m]; int[,] b = new int[m, l]; // int[,] c = new int[n, l]; for (int i = 0; i ...
using System; class program { public static void Main() { var strs = Console.ReadLine().Split(' '); var n = int.Parse(strs[0]); var m = int.Parse(strs[1]); var l = int.Parse(strs[2]); long[,] a = new long[n, m]; long[,] b = new long[m, l]; // int[,] c = new int[n, l]; for (int i = 0...
[["-", 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, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 199], ["-", 0, 7, 8, 196, 0, 7, 2...
8
328
using System; class Program { static void Main(string[] args) { String[] aryInput = Console.ReadLine().Split(' '); int n = int.Parse(aryInput[0]); int m = int.Parse(aryInput[1]); int l = int.Parse(aryInput[2]); long[,] A = new long[n, m]; long[,] B = new long[m, l]; long[,] C = new long[...
using System; class Program { static void Main(string[] args) { String[] aryInput = Console.ReadLine().Split(' '); int n = int.Parse(aryInput[0]); int m = int.Parse(aryInput[1]); int l = int.Parse(aryInput[2]); long[,] A = new long[n, m]; long[,] B = new long[m, l]; long[,] C = new long[...
[["-", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+",...
8
388
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] datanum = Console.ReadLine().Split(' '); //????????????????????????n,m,l???int????????£?????? int n = int.Parse(datanum[0]); int m = int.Pars...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] datanum = Console.ReadLine().Split(' '); //????????????????????????n,m,l???int????????£?????? long n = long.Parse(datanum[0]); long m = long....
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 200, 0, 212, 0, ...
8
410
using System; using System.Linq; public class Hello { public static void Main() { string str1 = Console.ReadLine(); char[] str = str1.ToCharArray(); string ans = ""; foreach (char let in str) { if (let >= 'a' && let <= 'z') Console.Write((char)((int)let ^ 0x20)); else C...
using System; using System.Linq; public class Hello { public static void Main() { string str1 = Console.ReadLine(); char[] str = str1.ToCharArray(); string ans = ""; foreach (char let in str) { if ((let >= 'a' && let <= 'z') || (let >= 'A' && let <= 'Z')) Console.Write((char)((int)le...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 16, 12, 252, 0, 104], ["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 25], ["+", 0, 210, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 22, 0, 243], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 20]...
8
101
using System; public class Class1 { public static void Main() { string dataSet = Console.ReadLine(); char[] cs = dataSet.ToCharArray(); for (int i = 0; i < cs.Length; i++) { if (char.IsUpper(cs[i])) { char.ToLower(cs[i]); } else if (char.IsLower(cs[i])) { char.ToUpper(cs[i]); ...
using System; public class Class1 { public static void Main() { string dataSet = Console.ReadLine(); char[] cs = dataSet.ToCharArray(); for (int i = 0; i < cs.Length; i++) { if (char.IsUpper(cs[i])) { cs[i] = char.ToLower(cs[i]); } else if (char.IsLower(cs[i])) { cs[i] = char....
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32]]
8
119
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { string input = Console.ReadLine(); char[] array = input.ToCharArray(); int answer = 0; if (array[0] == 0) break; for (int i = 0; i < array.Length; i++) { ...
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { while (true) { string input = Console.ReadLine(); if (input == "0") break; char[] array = input.ToCharArray(); int answer = 0; for (int i = 0; i < array.Length; i++) { a...
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 8, 196, 0, 57, 15, 16, 12, 5, 0, 222], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0...
8
107
using System; namespace ConsoleApp_ITP1_8_B { class Program { static void Main(string[] args) { double output = 0; for (;;) { string input = Console.ReadLine(); if (input == "0") break; else { foreach (var s in input) { output += Int32.Parse(s.ToString()); ...
using System; namespace ConsoleApp_ITP1_8_B { class Program { static void Main(string[] args) { for (;;) { double output = 0; string input = Console.ReadLine(); if (input == "0") break; else { foreach (var s in input) { output += Int32.Parse(s.ToString()); ...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, ...
8
85
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ITP1 { class ITP1_5_D { static void Method(string[] args) { int n; n = int.Parse(Console.ReadLine()); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ITP1 { class ITP1_5_D { static void Method(string[] args) { int n; n = int.Parse(Console.ReadLine()); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { ...
[["+", 8, 196, 0, 57, 15, 16, 31, 23, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 62], [...
8
270
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string line = " 3"; for (int i = 4; i <= n; i++) { if (i % 3 == 0 || INCLUDE3(i)) { line = line + " " + i.ToString(); } } Console.WriteLine(line); } static bool INCLUDE3(i...
using System; class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string line = " 3"; for (int i = 4; i <= n; i++) { if (i % 3 == 0 || INCLUDE3(i)) { line = line + " " + i.ToString(); } } Console.WriteLine(line); } static bool INCLUDE3(i...
[["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 24], ["+", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 25], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ...
8
137
using System; using System.Linq; using System.Text; namespace ITP1_5_D_Structured_Programming { class Program { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); Console.WriteLine(Enumerable.Range(1, input) .Where(n => n % 3 == 0 || n % 10 == 3) ...
using System; using System.Linq; using System.Text; namespace ITP1_5_D_Structured_Programming { class Program { static void Main(string[] args) { var input = int.Parse(Console.ReadLine()); Console.WriteLine(Enumerable.Range(1, input) .Where(n => n % 3 == 0 || n.ToString().Contains("...
[["-", 0, 218, 8, 16, 12, 16, 31, 16, 17, 109], ["-", 0, 218, 8, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 28, 0, 218, 8, 16, 12, 16, 17, 60], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 205...
8
102
using System; namespace ITP1_5_D { class Program { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= n; i++) if (i % 3 == 0 || i % 10 == 3) Console.Write(" " + i); Console.WriteLine(); } } }
using System; namespace ITP1_5_D { class Program { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || i.ToString().Contains("3")) Console.Write(" " + i); } Console.WriteLine(); } } }
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 12,...
8
81
using System.Text; public partial class IntroductionToProgramming { public static void Main() { int n = int.Parse(System.Console.ReadLine()); StringBuilder sb = new StringBuilder(); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { sb.Append(" " + i.ToString()); } else if (i % 10 == 3...
using System.Text; public partial class IntroductionToProgramming { public static void Main() { int n = int.Parse(System.Console.ReadLine()); StringBuilder sb = new StringBuilder(); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { sb.Append(" " + i.ToString()); } else if (i.ToString(...
[["-", 0, 57, 75, 57, 15, 16, 31, 16, 17, 109], ["-", 0, 57, 75, 57, 15, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 60], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 31, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 31, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 31, 213, 63, 214, 20...
8
123
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int x = 1; while (x <= n) { if (x % 3 == 0 || x % 10 == 3) { Console.Write(" {0}", ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); int x = 1; while (x <= n) { if (x % 3 == 0 || x % 10 == 3 || x.ToString().Contains("3")) { ...
[["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16...
8
102
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { for (int x = 1; x <= int.Parse(Console.ReadLine()); ++x) { if (x % 3 == 0 || x % 10 == 3 || x.ToString().Contains("3")) { Console.W...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); for (int x = 1; x <= n; ++x) { if (x % 3 == 0 || x % 10 == 3 || x.ToString().Contains("3")) { ...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 2...
8
110
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { //???????????????????????? string s = Console.ReadLine(); //????????´??°??¨?????? int n = int.Parse(s); //????????§??°????????? for (int i = 1...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { //???????????????????????? string s = Console.ReadLine(); //????????´??°??¨?????? int n = int.Parse(s); //????????§??°????????? for (int i = 1...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", ...
8
147
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { String str = Console.ReadLine(); int n = int.Parse(str); int i = 1; int x; while (++i != n + 1) { x = i; if (x % 3 == 0) { Cons...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { String str = Console.ReadLine(); int n = int.Parse(str); int i = 1; int x; while (++i != n + 1) { x = i; if (x % 3 == 0) { Cons...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 75, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 46]]
8
139
using System; class MainClass { public static void Main() { int input = int.Parse(Console.ReadLine()); for (int i = 1; i <= input; i++) { int x = i; bool isInThree = false; while (x > 10) { if (x % 10 == 3) isInThree = true; x /= 10; } if (i % 3 == 0 ...
using System; class MainClass { public static void Main() { int input = int.Parse(Console.ReadLine()); for (int i = 1; i <= input; i++) { int x = i; bool isInThree = false; while (x > 10) { x /= 10; if (x % 10 == 3) isInThree = true; } if (i % 10 == 3...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 57, 64, 1, 0, 35], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 90], ["-", 0, 52, 8, 1...
8
106
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleApplication2 { class Program { public static void call(int n) { int i = 1; for (i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { Console.Write(" " + i); continue; } ...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleApplication2 { class Program { public static void call(int n) { int i = 1; for (i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { Console.Write(" " + i); continue; } ...
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-...
8
180
using System; class Print_a_Rectangle { public static void Main() { int n = int.Parse(Console.ReadLine()); int x; for (int i = 1; i <= n; i++) { if (i % 3 == 0) Console.Write(" {0}", i); else { x = i; do { x = x / 10; if (x % 10 == 3) { ...
using System; class Print_a_Rectangle { public static void Main() { int n = int.Parse(Console.ReadLine()); int x; for (int i = 1; i <= n; i++) { if (i % 3 == 0) Console.Write(" {0}", i); else { x = i; do { if (x % 10 == 3) { Console.Write(" {0}",...
[["-", 0, 82, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 203], ["-", 75, 196, 0, 82, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196...
8
123
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) { Console.Write(" {0}", i); } else if (x % 10 == 3) { Console.Write(" {0}", i); } else { x /= 10; } } ...
using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) { Console.Write(" {0}", i); } else { while (x > 0) { if (x % 10 == 3) { Console.Write(" {0}", i); ...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 196, 0, 52, 0, 89], ["+", 8, 196, 0, 57, 75, 196, 0, 52, 0, 24], ["+", 0, 57, 75, 196, 0, 52, 15, 16, 31, 22], ["+", 0, 57, 75, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 57, 75, 196, 0, 52, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 75, 196, 0, 52, 0, 25], [...
8
105
using System; using System.Text; class aizu_judge { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); StringBuilder sb = new StringBuilder(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) sb.Append(sb.Equals(string.Empty) ? i.ToString() : " " + ...
using System; using System.Text; class aizu_judge { static void Main(string[] args) { int n = Convert.ToInt32(Console.ReadLine()); StringBuilder sb = new StringBuilder(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i.ToString().Contains("3")) sb.Append(sb.Equals(string.Empty) ? i.ToSt...
[["-", 0, 57, 15, 16, 12, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 20...
8
116
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); for (int i = 1; i < a; i++) { if (a % 3 == 0) { Console.Write(" " + i); } else { string y = "" + i + ""; for (int k = 0; k < y.Length; k++) { if (y.Substri...
using System; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); for (int i = 1; i <= a; i++) { if (i % 3 == 0) { Console.Write(" " + i); } else { string y = "" + i + ""; for (int k = 0; k < y.Length; k++) { if (y.Substr...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24],...
8
137
// ITP1_5_D //???????????? using System; using System.Collections.Generic; class ITP1_5_D { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); call(n); } private static void call(int n) { for (int i = 1; i <= n; i++) { // i????????§?????????????????????3??¨?????????????...
// ITP1_5_D //???????????? using System; using System.Collections.Generic; class ITP1_5_D { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); call(n); } private static void call(int n) { for (int i = 1; i <= n; i++) { string s = i.ToString(); // i????????§???????...
[["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, ...
8
114
using System; using System.Collections.Generic; using System.Collections; // using System.Linq; // using System.Text; // using System.Threading.Tasks; // namespace _1_A //{ class Program { static void Main(string[] args) { int i = 1; int n = int.Parse(Console.ReadLine()); while (++i <= n) { int x =...
using System; using System.Collections.Generic; using System.Collections; // using System.Linq; // using System.Text; // using System.Threading.Tasks; // namespace _1_A //{ class Program { static void Main(string[] args) { int i = 1; int n = int.Parse(Console.ReadLine()); while (++i <= n) { int x =...
[["-", 8, 196, 0, 52, 8, 196, 0, 52, 0, 89], ["-", 8, 196, 0, 52, 8, 196, 0, 52, 0, 24], ["-", 0, 52, 8, 196, 0, 52, 15, 16, 31, 22], ["-", 0, 52, 8, 196, 0, 52, 15, 16, 17, 79], ["-", 0, 52, 8, 196, 0, 52, 15, 16, 12, 203], ["-", 8, 196, 0, 52, 8, 196, 0, 52, 0, 25], ["-", 0, 52, 8, 196, 0, 52, 8, 196, 0, 45], ["-", 8...
8
134
using System; class Program { static void Main() { int c = int.Parse(Console.ReadLine()); string result = ""; int foundIndex; for (int i = 3; i <= c; i++) { if (i % 3 == 0) { result = result + i.ToString(); } else { foundIndex = i.ToString().IndexOf("3"); if (foun...
using System; class Program { static void Main() { int c = int.Parse(Console.ReadLine()); string result = ""; int foundIndex; for (int i = 3; i <= c; i++) { if (i % 3 == 0) { result = result + " " + i.ToString(); } else { foundIndex = i.ToString().IndexOf("3"); if...
[["+", 0, 11, 12, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 11, 12, 16, 31, 16, 12, 5, 0, 222], ["+", 64, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 72]]
8
117
using System; class aoj { static void Main() { int a = int.Parse(Console.ReadLine()); string[] b = Console.ReadLine().Split(' '); int[] c = new int[a]; for (int i = 0; i < a; i++) { c[i] = int.Parse(b[i]); } Array.Sort(c); Array.Reverse(c); Console.Write(c[0]); for (int i = 1...
using System; class aoj { static void Main() { int a = int.Parse(Console.ReadLine()); string[] b = Console.ReadLine().Split(' '); int[] c = new int[a]; for (int i = 0; i < a; i++) { c[i] = int.Parse(b[i]); } Array.Reverse(c); Console.Write(c[0]); for (int i = 1; i < a; i++) { ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]]
8
148
using System; using System.Linq; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); // int[] x1 = new int[a]; int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); // Array.Reverse(x); for (int a1 = a - 1; a1 >= 0; a1--) { if (a1 > 0) { ...
using System; using System.Linq; class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); // int[] x1 = new int[a]; int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); // Array.Reverse(x); for (int a1 = a - 1; a1 >= 0; a1--) { if (a1 > 0) { ...
[["+", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 70], ["+", 0, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 28, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["-...
8
110
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); for (int i = 0; i < n; i++) if (i == n - 1) Console.WriteLine(a[i]); else ...
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); Array.Reverse(a); for (int i = 0; i < n; i++) if (i == n - 1) Console.WriteLi...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
117
using System; class Program { static void Main() { Console.ReadLine(); int[] num = TypeConverter.arrayStrToInt(Console.ReadLine().Split(' ')); Array.Sort(num); Array.Reverse(num); Console.WriteLine(string.Join(" ", TypeConverter.arrayIntToStr(num))); } } class TypeConverter { static public...
using System; class Program { static void Main() { Console.ReadLine(); int[] num = TypeConverter.arrayStrToInt(Console.ReadLine().Split(' ')); Array.Reverse(num); Console.WriteLine(string.Join(" ", TypeConverter.arrayIntToStr(num))); } } class TypeConverter { static public int[] arrayStrToInt(...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131]]
8
167
using System; namespace ITP1_6_B { class Program { static void Main() { int x = int.Parse(Console.ReadLine()); bool[,] y = new bool[4, 13]; string[] s = { "S", "H", "C", "D" }; for (int i = 0; i < x; i++) { string[] S = Console.ReadLine().Split(' '); for (int j = 0; j < 4; j++) { ...
using System; namespace ITP1_6_B { class Program { static void Main() { int x = int.Parse(Console.ReadLine()); bool[,] y = new bool[4, 13]; // boolでtrueとfalseに分けて、falseの時に出力させる string[] s = { "S", "H", "C", "D" }; for (int i = 0; i < x; i++) { string[] S = Console.ReadLine().Split(' '); ...
[["+", 64, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 21], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 146...
8
216
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Prac { public class Cards { public int n { get; private set; } public string suit { get; private set; } public Cards(String suit, int n) { this.suit = suit; this.n = n; } public override String ToString() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Prac { public struct Cards { public int n; public string suit; public Cards(String suit, int n) { this.suit = suit; this.n = n; } public override String ToString() { return suit + " " + n.ToString(); } } c...
[["-", 0, 208, 0, 209, 8, 201, 0, 235, 0, 269], ["+", 0, 208, 0, 209, 8, 201, 0, 270, 0, 149], ["-", 0, 235, 8, 201, 0, 277, 278, 279, 0, 45], ["-", 8, 201, 0, 277, 278, 279, 0, 280, 141, 281], ["-", 8, 201, 0, 277, 278, 279, 0, 280, 0, 35], ["-", 0, 277, 278, 279, 0, 280, 0, 251, 0, 261], ["-", 8, 201, 0, 277, 278, 27...
8
363
using System; namespace csharptest { class Program { static void Main(string[] args) { bool[] S = new bool[13] { false, false, false, false, false, false, false, false, false, false, false, false, false }; bool[] H = new bool[13] { false, false, false, false, false, false, false,...
using System; namespace csharptest { class Program { static void Main(string[] args) { bool[] S = new bool[13] { false, false, false, false, false, false, false, false, false, false, false, false, false }; bool[] H = new bool[13] { false, false, false, false, false, false, false,...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25]]
8
497
using System; namespace JKTX_AOJ2015 { class Trump { public const int TRUMP_NUM = 13; public bool[] S = new bool[TRUMP_NUM]; public bool[] H = new bool[TRUMP_NUM]; public bool[] C = new bool[TRUMP_NUM]; public bool[] D = new bool[TRUMP_NUM]; } class Program { static void Main(string[] args) { int n,...
using System; namespace JKTX_AOJ2015 { class Trump { public const int TRUMP_NUM = 13; public bool[] S = new bool[TRUMP_NUM + 1]; public bool[] H = new bool[TRUMP_NUM + 1]; public bool[] C = new bool[TRUMP_NUM + 1]; public bool[] D = new bool[TRUMP_NUM + 1]; } class Program { static void Main(string[] ar...
[["+", 0, 227, 39, 224, 225, 226, 0, 16, 17, 72], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
8
412
using System; public class Test { static public void Main() { const int S = 0; const int H = 1; const int C = 2; const int D = 3; int n = int.Parse(Console.ReadLine()); int[,] shcd = new int[4, 13] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
using System; public class Test { static public void Main() { const int S = 0; const int H = 1; const int C = 2; const int D = 3; int n = int.Parse(Console.ReadLine()); int[,] shcd = new int[4, 13] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[["+", 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, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 31, 22], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 12, 22],...
8
440
using System; namespace ConsoleApplication37 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); int o = int.Parse(n); //??????????????? String[,] t = new string[4, 13]; //??????????????? bool[,] b = new bool[4, 13]; //????????°??????????????? for (int i...
using System; namespace ConsoleApplication37 { class Program { static void Main(string[] args) { string n = Console.ReadLine(); int o = int.Parse(n); //??????????????? String[,] t = new string[4, 13]; //??????????????? bool[,] b = new bool[4, 13]; //????????°??????????????? for (int i...
[["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 22], ["-", 0, 197, 0, 198, 39, 224, 22...
8
344
using System; namespace AOJ { class Program { static void Main(string[] args) { var card = new bool[4, 13]; for (var i = 0; i < 4; i++) { for (var r = 0; r < 13; r++) { card[i, r] = false; } } var read = Console.ReadLine(); int num = int.Parse(read); for (int i = 0; i ...
using System; namespace AOJ { class Program { static void Main(string[] args) { var card = new bool[4, 13]; for (var i = 0; i < 4; i++) { for (var r = 0; r < 13; r++) { card[i, r] = false; } } var read = Console.ReadLine(); int num = int.Parse(read); for (int i = 0; i ...
[["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", 0, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 19...
8
380
using System; namespace ConsoleApplication17 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); bool[,] b = new bool[4, 13]; string[] e = { "S", "H", "C", "D" }; for (int i = 0; i < a; i++) { string c = Console.ReadLine(); string[] d = c.Split(' '); for (i...
using System; namespace ConsoleApplication17 { class Program { static void Main() { int a = int.Parse(Console.ReadLine()); bool[,] b = new bool[4, 13]; string[] e = { "S", "H", "C", "D" }; for (int i = 0; i < a; i++) { string c = Console.ReadLine(); string[] d = c.Split(' '); for (i...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 3, 4, 0, 28, 0, 16, 12, 23, 0, 24], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 28, 0, 16, 12, 23, 0, 16, 12, 203], ["+", ...
8
221
using System; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); bool[] S = new bool[13]; bool[] H = new bool[13]; bool[] C = new bool[13]; bool[] D = new bool[13]; for (int i = 0; i < count;...
using System; using System.Collections; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); bool[] S = new bool[13]; bool[] H = new bool[13]; bool[] C = new bool[13]; bool[] D = new bool[13]; for (int i = 0; i < count;...
[["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 64, 196, 0, 1, 0, 213, 3, 4, 0, 21]]
8
384
using System; public class Class1 { public static void Main() { int n = int.Parse(Console.ReadLine()); //???????????° int[,] cards = new int[4, 13]; for (int i = 0; i < 4; i++) { for (int j = 0; j < 13; j++) { cards[i, j] = 0; } } for (int i = 0; i < n; i++) { stri...
using System; public class Class1 { public static void Main() { int n = int.Parse(Console.ReadLine()); int[,] cards = new int[4, 13]; for (int i = 0; i < 4; i++) { for (int j = 0; j < 13; j++) { cards[i, j] = 0; } } for (int i = 0; i < n; i++) { string dataSet = Conso...
[["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 239, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 0, 213, ...
8
323
using System; class Program { static void Main(string[] args) { int[,] array = new int[4, 13]; int n; int num = 0; char cha; for (int i = 0; i < 4; i++) { for (int j = 0; j < 13; j++) { array[i, j] = 0; } } string str1 = Console.ReadLine(); n = int.Parse(str1); ...
using System; class Program { static void Main(string[] args) { int[,] array = new int[4, 13]; int n; int num = 0; char cha; for (int i = 0; i < 4; i++) { for (int j = 0; j < 13; j++) { array[i, j] = 0; } } string str1 = Console.ReadLine(); n = int.Parse(str1); ...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201...
8
384
using System; using System.Collections.Generic; using System.Linq; class Program { static int CountLetter(char s, List<char> letter2) { int count = 0; for (int i = 0; i < letter2.Count; i++) { if (letter2[i] == s || letter2[i] == Char.ToUpper(s)) { count++; } } return count; ...
using System; using System.Collections.Generic; using System.Linq; class Program { static int CountLetter(char s, List<char> letter2) { int count = 0; for (int i = 0; i < letter2.Count; i++) { if (letter2[i] == s || letter2[i] == Char.ToUpper(s)) { count++; } } return count; ...
[["+", 8, 196, 0, 57, 15, 213, 63, 214, 205, 199], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["-", 0, 82, 8, 196, 0, 57, 15, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 5, 0, 62], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, ...
8
197
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Counting_Characters { class Program { static void Main(string[] args) { string inputAll = ""; while (true) { string input = Console.ReadLine().ToLower(); if (string.IsNul...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Counting_Characters { class Program { static void Main(string[] args) { string inputAll = ""; while (true) { string input = Console.ReadLine(); if (string.IsNullOrEmpty(...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ...
8
235
using System; class program { public static void Main() { int[] hist = new int[26]; while (true) { string str = Console.ReadLine().ToLower(); if (str.Length == 0) break; foreach (char s in str) { if (s >= 'a' && s <= 'z') { hist[s - 97]++; } } ...
using System; class program { public static void Main() { int[] hist = new int[26]; string str; while (true) { str = Console.ReadLine(); if (str == null) break; str = str.ToLower(); foreach (char s in str) { if (s >= 'a' && s <= 'z') { hist[s - 97]++...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 0, 200, 0, 212, 0, 213, 63, 21...
8
127
using System; class ITP1 { static void Main() { int[] x = new int[26]; while (true) { var str = Console.ReadLine().ToCharArray(); if (str == null) { break; } for (int i = 0; i < str.Length; i++) { for (int j = 0; j < 26; j++) { if (str[i] == 'a' + j || str[i]...
using System; class ITP1 { static void Main() { int[] x = new int[26]; while (true) { string str = Console.ReadLine(); if (str == null) { break; } char[] ch = str.ToCharArray(); for (int i = 0; i < ch.Length; i++) { for (int j = 0; j < 26; j++) { if (c...
[["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 197, 0, 198, 39, 224, ...
8
161
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ITP1_8_C { class Program { static void Main(string[] args) { var alphabet = "abcdefghijklmnopqrstuvwxyz"; var sumOfAlphabets = new int[alphabet.Length]; var isContinued = true; while (isContinued) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ITP1_8_C { class Program { static void Main(string[] args) { var alphabet = "abcdefghijklmnopqrstuvwxyz"; var sumOfAlphabets = new int[alphabet.Length]; var isContinued = true; while (isContinued) { ...
[["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 12, 215], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 52, 8, 196, 0, 210, 0, 25...
8
183
using LIB; using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { Dictionary<char, int> memo = new Dictionary<char, int>(); for (char c = 'a'; c <= 'z'; c++) { memo[c] = 0; } string s = ""; int n = 0; while...
using LIB; using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { Dictionary<char, int> memo = new Dictionary<char, int>(); for (char c = 'a'; c <= 'z'; c++) { memo[c] = 0; } string s = ""; int n = 0; while...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8,...
8
646
using System; class Program { /// <summary> /// エントリポイント /// </summary> /// <param name="args"></param> static void Main(string[] args) { //アルファベットカウント格納用配列 int[] counts = new int[26]; while (true) { string line = Console.ReadLine(); if (line == null || line.Length == 0) bre...
using System; class Program { /// <summary> /// エントリポイント /// </summary> /// <param name="args"></param> static void Main(string[] args) { //アルファベットカウント格納用配列 int[] counts = new int[26]; while (true) { string line = Console.ReadLine(); if (line == null || line.Length == 0) bre...
[["-", 0, 210, 8, 1, 0, 223, 0, 204, 205, 22], ["-", 8, 1, 0, 223, 0, 204, 206, 207, 0, 70], ["+", 0, 52, 8, 196, 0, 210, 8, 196, 0, 45], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 210, 8, 196, 0, 197, 0,...
8
207
using System; namespace ITP1 { class Program { static void Main(string[] args) { string set = "abcdefghijklmnopqrstuvwxyz"; int[] ans = new int[26]; while (true) { string input = Console.ReadLine(); if (input == null | input.Length == 0) break; input = input.ToLower(); for...
using System; namespace ITP1_8_C { class Program { static void Main(string[] args) { string set = "abcdefghijklmnopqrstuvwxyz"; int[] cou = new int[26]; while (true) { string input = Console.ReadLine(); if (input == null || input.Length == 0) break; else { input = input....
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 139], ["+", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 52, 8, 196, 0, 57,...
8
168
using System; using System.Collections.Generic; class A { public static void Main() { int[] output = new int[26]; while (true) { string s = Console.ReadLine().ToUpper(); if (string.IsNullOrEmpty(s) || s.Length == 0) break; for (int i = 0; i < s.Length; i++) { if (s[i] >=...
using System; using System.Collections.Generic; class A { public static void Main() { int[] output = new int[26]; while (true) { string s = Console.ReadLine(); if (s == null || s.Length == 0) break; string s2 = s.ToUpper(); for (int i = 0; i < s2.Length; i++) { if ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["-", 0, 57, 15, 16, 31, 213, 63, 214, 0...
8
168
using System; using System.Collections.Generic; class A { public static void Main() { int[] output = new int[26]; while (true) { string s = Console.ReadLine().ToUpper(); if (string.IsNullOrEmpty(s) || s.Length == 0) break; for (int i = 0; i < s.Length; i++) { if (s[i] >=...
using System; using System.Collections.Generic; class A { public static void Main() { int[] output = new int[26]; while (true) { string s = Console.ReadLine(); if (string.IsNullOrEmpty(s)) break; string s2 = s.ToUpper(); for (int i = 0; i < s2.Length; i++) { if (s2...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 0, 52, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 94], ...
8
168
using System; public class Class1 { public static void Main() { string line; int[] alphabet = new int[26]; while ((line = Console.ReadLine()) != null) { char[] cs = line.ToCharArray(); for (int i = 0; i < cs.Length; i++) { if (char.IsLetter(cs[i])) { if (char.IsUpper(cs[i])...
using System; public class Class1 { public static void Main() { string line; int[] alphabet = new int[26]; while ((line = Console.ReadLine()) != null) { char[] cs = line.ToCharArray(); for (int i = 0; i < cs.Length; i++) { if (char.IsLetter(cs[i])) { if (char.IsUpper(cs[i]...
[["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 24], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 39, 199], ["+", 0, 200, 0, 212, 0, 16, 12, 74, 0, 25], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 28, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 74, 0, 24], ["...
8
174
using System; public class Program { public static void Main(string[] args) { // var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? int[] intArray = new int[26]; string abc = "abcdefghijklmnopqrstuvwxyz"; char[] a...
using System; public class Program { public static void Main(string[] args) { // var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? int[] intArray = new int[26]; string abc = "abcdefghijklmnopqrstuvwxyz"; char[] a...
[["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], [...
8
517
using System; namespace Character { class Counting_Characters { static void Main(string[] args) { var line = ""; var count = new int[26]; while ((line = Console.ReadLine()) != "") { var array = line.ToCharArray(); for (int i = 0; i < array.Length; i++) if (char.IsLetter(array[i])) { ...
using System; namespace Character { class Counting_Characters { static void Main(string[] args) { var line = ""; var count = new int[26]; while ((line = Console.ReadLine()) != null) { var array = line.ToLower().ToCharArray(); for (int i = 0; i < array.Length; i++) if (char.IsLetter(ar...
[["-", 8, 196, 0, 52, 15, 16, 12, 5, 0, 62], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 12, 215], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 57, 64, ...
8
176
using System; namespace _8_C { class Program { static void Main(string[] args) { int[] ret = new int[500]; while (true) { string s = Console.ReadLine().ToLower(); if (s == null) break; for (int i = 0; i < s.Length; i++) { ret[s[i]]++; } } for (int i = 'a'; i <=...
using System; namespace _8_C { class Program { static void Main(string[] args) { int[] ret = new int[500]; while (true) { string s = Console.ReadLine(); if (s == null) break; s = s.ToLower(); for (int i = 0; i < s.Length; i++) { ret[s[i]]++; } } for (int ...
[["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 93, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+"...
8
126
using System; namespace ITP1_8_C { class Program { static void Main() { int[] sum = new int[26]; while (true) { string sentence; if ((sentence = Console.ReadLine()) == null) break; char[] schar = sentence.ToLower().ToCharArray(); for (int i = 0; i < schar.Length; i++) { ...
using System; namespace ITP1_8_C { class Program { static void Main() { int[] sum = new int[26]; while (true) { string sentence; if ((sentence = Console.ReadLine()) == null) break; char[] schar = sentence.ToLower().ToCharArray(); for (int i = 0; i < schar.Length; i++) { ...
[["-", 0, 57, 15, 16, 31, 16, 31, 204, 205, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 70], ["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["-", 15, 16, 31, 16, 31, 204, 206, 207, 0, 73], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["-", 0, 57, 15, 16, 31, 16, 12, 252, 0, 104], ["-", 0, 57, 15, 16, 31, 16, 12,...
8
163
using System; namespace ConsoleApplication24 { class Program { static void Main(string[] args) { string sin = Console.ReadLine(); string pin = Console.ReadLine(); string S = sin + sin; int ans = 0; for (int j = 0; j < S.Length; j++) { if (pin[0].Equals(S[j])) { if (S.Length > (j + p...
using System; namespace ConsoleApplication25 { class Program { static void Main(string[] args) { string sin = Console.ReadLine(); string pin = Console.ReadLine(); string S = sin + sin; int ans = 0; for (int j = 0; j < S.Length; j++) { if (pin[0].Equals(S[j])) { if (S.Length > (j + ...
[["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 23, 0, 24], ["-", 0, 28, 0, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 28, 0, 23, 0, 16, 31, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 23, 0, 16, 17, 33], ["-", 3, 4, 0, 28, 0, 23, 0, 16, 12, 203], ["-", 0,...
8
167
using System; namespace Project { class MainClass { public static void Main(string[] args) { string s = Console.ReadLine(); string p = Console.ReadLine(); char[] c = new char[s.Length * 2]; for (int i = 0; i < s.Length; i++) { c[i] = s[i]; c[i + s.Length] = s[i]; } for (int i = 0;...
using System; namespace Project { class MainClass { public static void Main(string[] args) { string s = Console.ReadLine(); string p = Console.ReadLine(); char[] c = new char[s.Length * 2]; for (int i = 0; i < s.Length; i++) { c[i] = s[i]; c[i + s.Length] = s[i]; } for (int i = 0;...
[["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 205, 22], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 0, 131], ["+", 15, 16, 31, 16, 31, 16, 12, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 16, 31, 16, 12, 2...
8
182
using System; public class Program { public static void Main(string[] args) { // var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? string s = Console.ReadLine(); string sub = s.Substring(0, s.Length - 1); string p...
using System; public class Program { public static void Main(string[] args) { // var ss = new StreamScanner(); //--------------------------------- //????????????int, double, string?????????????????£???????????? string s = Console.ReadLine(); string sub = s.Substring(0, s.Length - 1); string p...
[["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]]
8
429
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ITP1_9_A { public class Program { public static void Main(string[] args) { string target = ReadSt(); int res = 0; while (true) { string[] line = ReadStAr(); if (line[0].Equals("END_OF_TEXT")) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ITP1_9_A { public class Program { public static void Main(string[] args) { string target = ReadSt(); int res = 0; while (true) { string[] line = ReadStAr(); if (line[0].Equals("END_OF_TEXT")) ...
[["+", 0, 218, 8, 16, 31, 213, 63, 214, 205, 22], ["+", 0, 218, 8, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 218, 8, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 218, 8, 16, 31, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 218, 8, 16, 17, 60], ["+", 0, 218, 8, 16, 31, 213, 3, 4, 0, 21], ["+", 31, 213, 3, 4, 0, 28, 0, 211, 0, 146...
8
329
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Finding_a_Word { class Program { static void Main(string[] args) { List<string> input = new List<string>(); string word = Console.ReadLine(); while (true) { string[] temp ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Finding_a_Word { class Program { static void Main(string[] args) { List<string> input = new List<string>(); string word = Console.ReadLine().ToLower(); while (true) { stri...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 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], ["...
8
166
using System; using System.IO; namespace aoj { class program { static void Main() { string find = Console.ReadLine(); string str = Console.In.ReadToEnd(); FindStr fs = new FindStr(find, str); Console.WriteLine("{0}", fs.find()); } } class FindStr { string src; string[] dst; public FindStr(st...
using System; using System.IO; namespace aoj { class program { static void Main() { string find = Console.ReadLine(); string str = Console.In.ReadToEnd(); FindStr fs = new FindStr(find, str); Console.WriteLine("{0}", fs.find()); } } class FindStr { string src; string[] dst; public FindStr(st...
[["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 24], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 39, 199], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 12, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 210,...
8
216
using System; using System.IO; namespace aoj { class program { static void Main() { string find = Console.ReadLine(); string str = Console.In.ReadToEnd(); FindStr fs = new FindStr(find, str); Console.WriteLine("{0}", fs.find()); } } class FindStr { string src; string[] dst; public FindStr(st...
using System; using System.IO; namespace aoj { class program { static void Main() { string find = Console.ReadLine(); string str = Console.In.ReadToEnd(); FindStr fs = new FindStr(find, str); Console.WriteLine("{0}", fs.find()); } } class FindStr { string src; string[] dst; public FindStr(st...
[["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 266], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 24], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 39, 199], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 0, 267], ["-", 8, 201, 0, 263, 8, 196, 0, 210, 12, 22], ["-", 8, 201, 0, 263, 8, 196, 0, 210,...
8
216
using System; class Program { static void Main(string[] args) { string W = Console.ReadLine(); int count = 0; while (true) { string[] data = Console.ReadLine().Split(' '); if (data[0] == "END_OF_TEXT") break; for (int i = 0, datacount = data.Length; i < datacount; i++) { ...
using System; class Program { static void Main(string[] args) { string W = Console.ReadLine().ToUpper(); int count = 0; while (true) { string[] data = Console.ReadLine().Split(' '); if (data[0] == "END_OF_TEXT") break; for (int i = 0, datacount = data.Length; i < datacount; i++) ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0...
8
112
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string W = Console.ReadLine(); int count = 0; while (true) { string[] str = Console.ReadLine().Split(' '); if (str[0] == "END_OF_TEXT") break; for (int i = 0; i < str.GetLength(0); ++i) { ...
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string W = Console.ReadLine(); W = W.ToLower(); int count = 0; while (true) { string[] str = Console.ReadLine().Split(' '); if (str[0] == "END_OF_TEXT") break; for (int i = 0; i < str.GetL...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8,...
8
118
using System; namespace csharptest { class Program { static void Main(string[] args) { long count = 0; string ans = Console.ReadLine(); string[] str = Console.ReadLine().Split(' '); while (str[0] != "END_OF_TEXT") { for (int n = 0; n < str.Length; n++) { if (str[n] == ans) { co...
using System; namespace csharptest { class Program { static void Main(string[] args) { long count = 0; string ans = Console.ReadLine(); string[] str = Console.ReadLine().Split(' '); while (str[0] != "END_OF_TEXT") { for (int n = 0; n < str.Length; n++) { if (string.Compare(ans, str[n], t...
[["+", 0, 57, 15, 16, 31, 213, 63, 214, 205, 199], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 15, 16, 31, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 21], ["+", 31, 213, 3, 4, 0, 28, 0, 211, 0, 1...
8
121
using System; using System.Linq; namespace AOJ.ITP { public class Finding_a_Word { public static void Main() { string find = Console.ReadLine(); int counter = 0; while (true) { string line = Console.ReadLine(); if (line == "END_OF_TEXT") { break; } // 単...
using System; using System.Linq; namespace AOJ.ITP { public class Finding_a_Word { public static void Main() { string find = Console.ReadLine().ToLower(); int counter = 0; while (true) { string line = Console.ReadLine(); if (line == "END_OF_TEXT") { break; } ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213...
8
101
using System; public class Test { public static void Main() { string w = Console.ReadLine().Trim(); string input; int cnt = 0; while (null != (input = Console.ReadLine())) { string[] words = input.ToLower().Split(' '); for (var i = 0; i < words.Length; i++) { if (w == words[i]) { ...
using System; public class Test { public static void Main() { string w = Console.ReadLine().Trim(); string input; int cnt = 0; while (null != (input = Console.ReadLine())) { string[] words = input.ToLower().Split(' '); for (var i = 0; i < words.Length; i++) { if (w == words[i]) { ...
[["-", 64, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 64, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 64, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
8
117
using LIB; using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { string t = io.r<string>(); int n = 0; while (true) { string s = io.r<string>(); if (s == "END_OF_TEXT") { break; } string[] ss...
using LIB; using System; using System.Linq; using System.Text; using System.Collections.Generic; class Program { static void Main(string[] args) { string t = io.r<string>().ToLower(); int n = 0; while (true) { string s = io.r<string>(); if (s == "END_OF_TEXT") { break; } s...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], [...
8
601
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string w = Console.ReadLine(); int num = 0; string line = null; while ((line = Console.ReadLine()) != null) { if (line.Compare...
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { string w = Console.ReadLine().ToUpper(); int num = 0; string line = null; while ((line = Console.ReadLine()) != null) { if (li...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 0, 28, 0, 218, 8, 213, 63, 214, 141, 22], ["+", 0, 218, 8, 16, 31, 213, 63, 214, 141, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0...
8
138
using System; class Program { static void Main() { var cnt = 0; var w = Console.ReadLine(); while (true) { var s = Console.ReadLine(); if (s == "END_OF_TEXT") break; foreach (var t in s.Split(' ')) { if (w == t) cnt++; } } Console.WriteLine(cnt)...
using System; class Program { static void Main() { var cnt = 0; var w = Console.ReadLine().ToLower(); while (true) { var s = Console.ReadLine(); if (s == "END_OF_TEXT") break; foreach (var t in s.ToLower().Split(' ')) { if (w == t) cnt++; } } Co...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, ...
8
85
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string foundword = Console.ReadLine(); string input; int count = 0; bool judge = true; while ((input = Console.ReadLine()) != "END_OF_TEXT") { foreach (var i in input.Split(' ')) { if (i.Length != ...
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string foundword = Console.ReadLine(); string input; int count = 0; while ((input = Console.ReadLine()) != "END_OF_TEXT") { foreach (var i in input.Split(' ')) { bool judge = true; if (i.Length...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 210, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200...
8
247
using System; namespace ConsoleApplication9 { class Program { static void Main() { int count = 0; string W = Console.ReadLine(); W.ToLower(); while (true) { string T = Console.ReadLine(); if (T == "END_OF_TEXT") break; else { T.ToLower(); string[] t = T.Split...
using System; namespace ConsoleApplication9 { class Program { static void Main() { int count = 0; string W = Console.ReadLine(); string w = W.ToLower(); while (true) { string T = Console.ReadLine(); if (T == "END_OF_TEXT") break; else { string T2 = T.ToLower(); ...
[["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 57, 75, 196, 0, 197, 0, 198, 39, 199], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 6...
8
124
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string w = Console.ReadLine(); int cnt = 0; while (true) { string t = Console.ReadLine(); if (t == "END_OF_TEXT") break; string[] word = t.Split(' '); for (int i = 0; i < word...
using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string w = Console.ReadLine(); int cnt = 0; while (true) { string t = Console.ReadLine(); if (t == "END_OF_TEXT") break; t = t.ToLower(); string[] word = t.Split(' '); f...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, ...
8
114
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string w = Console.ReadLine(); int cnt = 0; while (true) { string line = Console.ReadLine(); if (line.Equals("END_OF_TEXT")) break; string[] strs = line.Split(' '); foreach (var s in strs)...
using System; namespace ITP1_9_A { class Program { static void Main(string[] args) { string w = Console.ReadLine().ToUpper(); int cnt = 0; while (true) { string line = Console.ReadLine(); if (line.Equals("END_OF_TEXT")) break; string[] strs = line.ToUpper().Split(' '); for...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213...
8
104
using System; using System.Collections.Generic; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { string w = Console.ReadLine(); List<string> words = new List<string>(); while (true) { string temp = Console.ReadLine(); if (temp.Contains("END_OF_TEXT")) { ...
using System; using System.Collections.Generic; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { string w = Console.ReadLine().ToLower(); List<string> words = new List<string>(); while (true) { string temp = Console.ReadLine(); if (temp.Contains("END_OF_TEXT"...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0...
8
131
using System; using System.Linq; namespace _9_A { class Program { static void Main(string[] args) { string W = Console.ReadLine(); int a = 0; while (true) { string now = Console.ReadLine(); if (now == "END_OF_TEXT") { break; } string[] x = now.Split(); for (int i = 0...
using System; using System.Linq; namespace _9_A { class Program { static void Main(string[] args) { string W = Console.ReadLine(); W = W.ToLower(); int a = 0; while (true) { string now = Console.ReadLine(); if (now == "END_OF_TEXT") { break; } now = now.ToLower(); ...
[["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8,...
8
126
using System; class A { static void Main() { /////////////// string a = Console.ReadLine(); int ans = 0; while (true) { string gh = Console.ReadLine(); if (gh == "END_OF_TEXT") { break; } string[] a1 = gh.Split(); for (int i = 0; i < a1.Length; i++) { if (...
using System; class A { static void Main() { /////////////// string a = Console.ReadLine().ToLower(); int ans = 0; while (true) { string gh = Console.ReadLine(); if (gh == "END_OF_TEXT") { break; } string[] a1 = gh.Split(); for (int i = 0; i < a1.Length; i++) { ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0...
8
107
using System; using System.Collections.Generic; class UNKO { static void Main() { string word = Console.ReadLine(); string sentence; int count = 0; while ((sentence = Console.ReadLine()) != ("END_OF_TEXT")) { string[] words = sentence.Split(' '); for (int i = 0; i < words.GetLength(0); ...
using System; using System.Collections.Generic; class UNKO { static void Main() { string word = Console.ReadLine(); string sentence; int count = 0; while ((sentence = Console.ReadLine()) != ("END_OF_TEXT")) { sentence = sentence.ToLower(); string[] words = sentence.Split(' '); for...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 205, 22], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 0, 131], ["+", 0, 1, 0, 11, 12, 213, 63, 214, 141, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, ...
8
112
using System; namespace String { class Finding_a_Word { static void Main(string[] args) { var W = Console.ReadLine(); var line = ""; var c = 0; while ((line = Console.ReadLine()) != "END_OF_TEXT") { var token = line.Split(' '); for (int i = 0; i < token.Length; i++) if (W == token...
using System; namespace String { class Finding_a_Word { static void Main(string[] args) { var W = Console.ReadLine().ToLower(); var line = ""; var c = 0; while ((line = Console.ReadLine()) != "END_OF_TEXT") { var token = line.ToLower().Split(' '); for (int i = 0; i < token.Length; i++) ...
[["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213...
8
107
using System; namespace ITP1_9 { class Program { static void Main() { var w = Console.ReadLine(); int c = 0; while (true) { var t = Console.ReadLine(); if (t == "END_OF_TEXT") break; foreach (var u in t.Split()) if (w == u) c++; } Console.Write("{0}\n",...
using System; namespace ITP1_9 { class Program { static void Main() { var w = Console.ReadLine(); var c = 0; for (;;) { var t = Console.ReadLine(); if (t == "END_OF_TEXT") break; foreach (var u in t.ToLower().Split()) if (w == u) c++; } Console.Write("{...
[["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["-", 0, 195, 8, 196, 0, 52, 15, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 12, 213, 63, 214, 205, 213, 63, 214, ...
8
89
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int count = 0; string serarchstring = Console.ReadLine(); while (true) { string[] sentence = Console.ReadLine().Split(' '); if (sentence[0] ...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int count = 0; string serarchstring = Console.ReadLine(); while (true) { string[] sentence = Console.ReadLine().Split(' '); if (sentence[0] ...
[["+", 0, 57, 15, 16, 31, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 24], ["+", 0, 57, 15, 16, 31, 213, 3, 4, 0, 25], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 0, 131], ["+", 0, 57, 15, 16, 12, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 16, 12, 213, 3, 4, 0...
8
113
using System; class Program { static void Main(string[] args) { while (true) { char[] line = Console.ReadLine().ToCharArray(); if (line[0] == '-') break; int linecount = line.Length; char[] answer = new char[linecount]; int count = int.Parse(Console.ReadLine()); for (in...
using System; class Program { static void Main(string[] args) { while (true) { char[] line = Console.ReadLine().ToCharArray(); if (line[0] == '-') break; int linecount = line.Length; int count = int.Parse(Console.ReadLine()); for (int i = 0; i < count; i++) { char[] a...
[["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3...
8
190
using System; namespace Project { class MainClass { public static void Main(string[] args) { while (true) { string s = Console.ReadLine(); if (s == "-") break; int m = int.Parse(Console.ReadLine()); char[,] c = new char[m + 1, s.Length]; for (int i = 0; i < s.Length; i++) { ...
using System; namespace Project { class MainClass { public static void Main(string[] args) { while (true) { string s = Console.ReadLine(); if (s == "-") break; int m = int.Parse(Console.ReadLine()); char[,] c = new char[m + 1, s.Length]; for (int i = 0; i < s.Length; i++) { ...
[["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["-", 12, 204, 206, 207, 0, 28, 0, 16, 12, 22], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 17, 33], ["+", 206, 207, 0, 28, 0, 16, 31, 16, 12, 22], ["+", 31, 204, 206, 207, 0, 28, 0...
8
262
using System; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { while (true) { string cards = Console.ReadLine(); if (cards == "-") { break; } string temp = string.Empty; int m = int.Parse(Console.ReadLine()); for (int i = 0; i < m; i++...
using System; namespace ConsoleApplication5 { class Program { static void Main(string[] args) { while (true) { string cards = Console.ReadLine(); if (cards == "-") { break; } int m = int.Parse(Console.ReadLine()); for (int i = 0; i < m; i++) { int h = (int.Parse(Con...
[["-", 0, 52, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["-", 8, 196, 0, 52, 8, 196, 0, 19...
8
127
using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { while (true) { string shuffle = Console.ReadLine(); if ("-".Equals(shuffle)) break; int count = int.Parse(Console.ReadLine()); for (int i = 0; i < count; i++) { ...
using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { while (true) { string shuffle = Console.ReadLine(); if ("-".Equals(shuffle)) break; int count = int.Parse(Console.ReadLine()); for (int i = 0; i < count; i++) { ...
[["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]]
8
136