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 |
|---|---|---|---|---|
n=int(input())
card={"S":[0]*13,"H":[0]*13,"C":[0]*13,"D":[0]*13}
for i in range(n):
mark, number = input().split()
card[mark][int(number)-1] = 1
for a in ("S","H","C","D"):
for b in range(13):
if cards[a][b] == 0:
print(a,b+1) | n=int(input())
card={"S":[0]*13,"H":[0]*13,"C":[0]*13,"D":[0]*13}
for i in range(n):
mark, number = input().split()
card[mark][int(number)-1] = 1
for a in ("S","H","C","D"):
for b in range(13):
if card[a][b] == 0:
print(a,b+1)
| [["-", 0, 57, 15, 666, 0, 206, 51, 206, 51, 22], ["+", 0, 57, 15, 666, 0, 206, 51, 206, 51, 22]] | 5 | 132 |
n = eval(input())
data = {
'S':[0 for x in range(13)],
'H':[0 for x in range(13)],
'C':[0 for x in range(13)],
'D':[0 for x in range(13)]
}
for i in range(n):
s,num = input().split()
data[s][int(num)-1] = 1
for a in['S','H','C','D']:
for b in range(13):
if data[a][b] == 0:
... | n = eval(input())
data = {
'S':[0 for x in range(13)],
'H':[0 for x in range(13)],
'C':[0 for x in range(13)],
'D':[0 for x in range(13)]
}
for i in range(n):
s,num = input().split()
data[s][int(num)-1] = 1
for a in['S','H','C','D']:
for b in range(13):
if data[a][b] == 0:
... | [["-", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6], ["+", 0, 23, 0, 652, 63, 319, 500, 557, 0, 6]] | 5 | 161 |
N = int(input())
#??????????????????????????????
FL =[]
for i in range(13):
FL.append("S " + str(i+1))
for i in range(13):
FL.append("H " + str(i+1))
for i in range(13):
FL.append("C " + str(i+1))
for i in range(13):
FL.append("D " + str(i+1))
for i in range(N):
D = str(input())
FL.remove(D)
for i in range(52 ... | N = int(input())
#??????????????????????????????
FL =[]
for i in range(13):
FL.append("S " + str(i+1))
for i in range(13):
FL.append("H " + str(i+1))
for i in range(13):
FL.append("C " + str(i+1))
for i in range(13):
FL.append("D " + str(i+1))
for i in range(N):
D = str(input())
FL.remove(D)
for i in range(52 ... | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 146 |
n = int(input())
card = set()
for i in range(n):
card_type, card_num = input().split()
card.add(card_type + card_num)
for card_type in ["S", "H", "C", "D"]:
for card_num in range(1, 14):
if card_type + str(card_num) not in card:
print(card_type + str(card_num)) | n = int(input())
card = set()
for i in range(n):
card_type, card_num = input().split()
card.add(card_type + card_num)
for card_type in ["S", "H", "C", "D"]:
for card_num in range(1, 14):
if card_type + str(card_num) not in card:
print(card_type + " " + str(card_num)) | [["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 654], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 655], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72]] | 5 | 91 |
epochs = int(input())
patterns = ['S', 'H', 'C', 'D']
checker = {pattern: [True]*13 for pattern in patterns}
for i in range(epochs):
pattern, num = input().split()
num = int(num)
checker[pattern][num-1] = False
for pattern in patterns:
for i in range(13):
if checker[pattern][i]:
pri... | epochs = int(input())
patterns = ['S', 'H', 'C', 'D']
checker = {pattern: [True]*13 for pattern in patterns}
for i in range(epochs):
pattern, num = input().split()
num = int(num)
checker[pattern][num-1] = False
for pattern in patterns:
for i in range(13):
if checker[pattern][i]:
pr... | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 106 |
n=int(input())
S=[int(0) for i in range(1,14)]
H=[int(0) for i in range(1,14)]
D=[int(0) for i in range(1,14)]
C=[int(0) for i in range(1,14)]
for i in range(n):
K,y=[(i) for i in input().split()]
if K=='S':
S[int(y)-1]=1
elif K=='H':
H[int(y)-1]=1
elif K=='D':
D[int(y)-1]=1
... | n=int(input())
S=[int(0) for i in range(1,14)]
H=[int(0) for i in range(1,14)]
D=[int(0) for i in range(1,14)]
C=[int(0) for i in range(1,14)]
for i in range(n):
K,y=[(i) for i in input().split()]
if K=='S':
S[int(y)-1]=1
elif K=='H':
H[int(y)-1]=1
elif K=='D':
D[int(y)-1]=1
... | [["-", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 51, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 322 |
pri = {'S':0,'H':13,'C':26,'D':39}
total_cards = set()
for pic in pri.keys():
for rank in range(1,14):
total_cards.add(pic + ' ' + str(rank))
cards = set()
for _ in range(eval(input())):
cards.add(input())
no_cards = list(total_cards - cards)
no_cards.sort(key = lambda c: pri[c[0]] + int(c[2]))
for i in range(len(n... | pri = {'S':0,'H':13,'C':26,'D':39}
total_cards = set()
for pic in pri.keys():
for rank in range(1,14):
total_cards.add(pic + ' ' + str(rank))
cards = set()
for _ in range(eval(input())):
cards.add(input())
no_cards = list(total_cards - cards)
no_cards.sort(key = lambda c: pri[c[0]] + int(c[2:]))
for i in range(len(... | [["+", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102]] | 5 | 143 |
n=int(input())
card_have=[input().split() for i in range(n)]
nums={1,2,3,4,5,6,7,8,9,10,11,12,13}
s_have={int(s[1]) for s in card_have if s[0]=="S"}
h_have={int(h[1]) for h in card_have if h[0]=="H"}
c_have={int(c[1]) for c in card_have if c[0]=="C"}
d_have={int(d[1]) for d in card_have if d[0]=="S"}
s_lost=list(num... | n=int(input())
card_have=[input().split() for i in range(n)]
nums={1,2,3,4,5,6,7,8,9,10,11,12,13}
s_have={int(s[1]) for s in card_have if s[0]=="S"}
h_have={int(h[1]) for h in card_have if h[0]=="H"}
c_have={int(c[1]) for c in card_have if c[0]=="C"}
d_have={int(d[1]) for d in card_have if d[0]=="D"}
s_lost=list(num... | [["-", 12, 689, 0, 678, 0, 666, 0, 557, 0, 6], ["+", 12, 689, 0, 678, 0, 666, 0, 557, 0, 6]] | 5 | 255 |
cardlist = [[i for i in range(1,13)] for j in range(4)]
n = int(input())
for s in range(0, n):
x,y = map(str,input().split())
y = int(y)
if x == "S":
cardlist[0].remove(y)
elif x == "H":
cardlist[1].remove(y)
elif x == "C":
cardlist[2].remove(y)
else:
cardlist[3].... | cardlist = [[i for i in range(1,14)] for j in range(4)]
n = int(input())
for s in range(0, n):
x,y = map(str,input().split())
y = int(y)
if x == "S":
cardlist[0].remove(y)
elif x == "H":
cardlist[1].remove(y)
elif x == "C":
cardlist[2].remove(y)
else:
cardlist[3].... | [["-", 8, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 8, 658, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 186 |
N = int(input())
S = ["S"]
H = ["H"]
C = ["C"]
D = ["D"]
for i in range(N):
s, n = input().split()
if s == "S":
S.append(int(n))
elif s == "H":
H.append(int(n))
elif s == "C":
C.append(int(n))
else:
D.append(int(n))
def finder(d):
for j in range(1, len(d)+1):
... | N = int(input())
S = ["S"]
H = ["H"]
C = ["C"]
D = ["D"]
for i in range(N):
s, n = input().split()
if s == "S":
S.append(int(n))
elif s == "H":
H.append(int(n))
elif s == "C":
C.append(int(n))
else:
D.append(int(n))
def finder(d):
for j in range(1, 14):
i... | [["-", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 22], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 166 |
all_cards = [[],[],[],[]]
for i in range(4):
for j in range(13):
all_cards[i].append(j+1)
n = int(input())
for i in range(n):
card = input().split(" ")
print(card)
if card[0] == "S":
all_cards[0].remove(int(card[1]))
elif card[0] == "H":
all_cards[1].remove(int(card[1]))
elif card[0] == "C":
all_cards[2]... | all_cards = [[],[],[],[]]
for i in range(4):
for j in range(13):
all_cards[i].append(j+1)
n = int(input())
for i in range(n):
card = input().split(" ")
#print card
if card[0] == "S":
all_cards[0].remove(int(card[1]))
elif card[0] == "H":
all_cards[1].remove(int(card[1]))
elif card[0] == "C":
all_cards[2]... | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 298 |
cards = []
for i in set({'S','H','C','D'}):
for j in range(1, 14):
cards.append(i + " " + str(j))
N = int(input())
for i in range(N):
cards.remove(input())
for i in range(len(cards)):
print (cards[i])
| cards = []
for i in ['S','H','C','D']:
for j in range(1, 14):
cards.append(i + " " + str(j))
N = int(input())
for i in range(N):
cards.remove(input())
for i in range(len(cards)):
print (cards[i])
| [["-", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["-", 0, 7, 12, 652, 3, 4, 0, 282, 0, 45], ["+", 36, 36, 0, 656, 0, 7, 12, 634, 0, 70], ["-", 0, 7, 12, 652, 3, 4, 0, 282, 0, 46], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 656, 0, 7, 12, 634, 0, 73]] | 5 | 95 |
from collections import OrderedDict as od
a = {n for n in range(1,14)}
dic = od({"S":[],"H":[], "C":[], "D":[]})
N = int(input())
for n in range(N):
card, num = tuple(input().split())
dic[card].append(int(num))
dic["S"] = list(a - set(dic["S"]))
dic["H"] = list(a - set(dic["H"]))
dic["C"] = list(a - set(dic["C... | from collections import OrderedDict as od
a = {n for n in range(1,14)}
dic = od({"S":[],"H":[], "C":[], "D":[]})
N = int(input())
for n in range(N):
card, num = tuple(input().split())
dic[card].append(int(num))
dic["S"] = list(a - set(dic["S"]))
dic["H"] = list(a - set(dic["H"]))
dic["C"] = list(a - set(dic["C... | [["+", 8, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 8, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 209 |
n = int(input())
remind = []
for i in range(n):
remind.append(input())
egara = ["S ", "H ", "C ", "D "]
for i in range(4):
for j in range(1, 14):
if egara[i] + str(j) not in a:
print(egara[i] + str(j))
| n = int(input())
remind = []
for i in range(n):
remind.append(input())
egara = ["S ", "H ", "C ", "D "]
for i in range(4):
for j in range(1, 14):
if egara[i] + str(j) not in remind:
print(egara[i] + str(j))
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 91 |
S = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
H = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
C = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
D = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
l=int(input())
for i in range(l):
a,b = input().split()
b = int(b)
if a == 'S':
S[b] = 1
elif a == 'H' :
H[b] = 1
elif a == 'C':
C[b] = 1
elif a == 'D':
D[b] = 1
f... | S = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
H = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
C = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
D = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
l=int(input())
for i in range(l):
a,b = input().split()
b = int(b)
if a == 'S':
S[b] = 1
elif a == 'H' :
H[b] = 1
elif a == 'C':
C[b] = 1
elif a == 'D':
D[b] = 1
f... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 309 |
r4 = list(range(4))
r13 = list(range(13))
cards = [[0 for i in r13] for j in r4]
while True:
n = eval(input())
for i in range(n):
s1, s2 = input().split()
s1 = 'SHCD'.index(s1)
s2 = int(s2)-1
cards[s1][s2] = 1
for j in r4:
for i in r13:
if cards[j][i]==0: print('SHCD... | r4 = list(range(4))
r13 = list(range(13))
cards = [[0 for i in r13] for j in r4]
n = eval(input())
for i in range(n):
s1, s2 = input().split()
s1 = 'SHCD'.index(s1)
s2 = int(s2)-1
cards[s1][s2] = 1
for j in r4:
for i in r13:
if cards[j][i]==0:
print('SHCD'[j],i+1) | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89], ["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["-", 36, 36, 36, 36, 0, 656, 0, 52, 0, 102]] | 5 | 124 |
n = eval(input())
x = {'S':[], 'H':[], 'C':[], 'D':[]}
for i in range(n):
a = input().split()
x[a[0]].append(int(a[1]))
for key in ['s', 'H', 'C', 'D']:
for i in range(13):
for j in x[key]:
if i+1 == j: break
else: print(key, i+1) | n = eval(input())
x = {'S':[], 'H':[], 'C':[], 'D':[]}
for i in range(n):
a = input().split()
x[a[0]].append(int(a[1]))
for key in ['S', 'H', 'C', 'D']:
for i in range(13):
for j in x[key]:
if i+1 == j: break
else: print(key, i+1) | [["-", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6], ["+", 0, 656, 0, 7, 12, 634, 0, 557, 0, 6]] | 5 | 129 |
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13]
num = eval(input())
i = 0
while i < num:
suit, n = input().split
n = int(n)
if suit == "S":
Sp[n-1] = 0
elif suit == "H":
Hu[n-1] = 0
... | Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13]
num = int(eval(input()))
i = 0
while i < num:
suit, n = input().split()
n = int(n)
if suit == "S":
Sp[n-1] = 0
elif suit == "H":
Hu[n-... | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 277 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Str... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Str... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 189 |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] counter = new int[26];
String text;
while ((text = br.readLine()) != null) {
for (int i = 0; i < text.length(); i+... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] counter = new int[26];
String text;
while ((text = br.readLine()) != null) {
for (int i = 0; i < text.length(); i+... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 190 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] chars = new int[256];
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
for (int i = 0; i < line.length(); i++) {
char c = line.toLowerCase(... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] chars = new int[256];
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
for (int i = 0; i < line.length(); i++) {
char c = line.toLowerCase(... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 162 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
// ??????????????°?????¢?????????????????????????????§?... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
// ??????????????°?????¢?????????????????????????????§??... | [["-", 8, 196, 0, 57, 15, 15, 0, 492, 0, 131], ["-", 8, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["-", 0, 57, 15, 15, 0, 492, 3, 4, 0, 24], ["-", 15, 15, 0, 492, 3, 4, 0, 5, 0, 62], ["-", 0, 57, 15, 15, 0, 492, 3, 4, 0, 25], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 215]] | 3 | 282 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (sc.hasNext()) {
sb.append(sc.nextLine());
}
String s = sb.toString();
int[] count = new int[26];
for (int i = 0... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (sc.hasNext()) {
sb.append(sc.nextLine().toLowerCase());
}
String s = sb.toString();
int[] count = new int[26];
... | [["+", 0, 1, 0, 492, 3, 4, 0, 492, 0, 131], ["+", 0, 1, 0, 492, 3, 4, 0, 492, 141, 22], ["+", 0, 492, 3, 4, 0, 492, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 25]] | 3 | 180 |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
String str = "";
while ((str = br.readLine()... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
String str = "";
while ((str = br.readLine()... | [["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 219 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String[] Lary = {"A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "L",
"S", "T", "U", "V", "W", "X", "Y", "Z"};
String[] Sary = {"a", "b", "c",... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String[] Lary = {"A", "B", "C", "D", "E", "F", "G", "H", "I",
"J", "K", "L", "M", "N", "O", "P", "Q", "R",
"S", "T", "U", "V", "W", "X", "Y", "Z"};
String[] Sary = {"a", "b", "c",... | [["-", 0, 503, 49, 200, 51, 518, 0, 5, 0, 491], ["+", 0, 503, 49, 200, 51, 518, 0, 5, 0, 491], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46], ["-", 0, 52, 8, 196, 0, 7, 8, 196, 0, 46]] | 3 | 449 |
import java.util.Scanner;
public class Main {
// a~zの文字数を記録する配列
static int[] CharCount = new int[26];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Ctrl+Zが押されるまで繰り返す
while (sc.hasNext()) {
// 入力と文字カウント
CountingCharacters(sc.next());
}
// 表示
... | import java.util.Scanner;
public class Main {
// a~zの文字数を記録する配列
static int[] CharCount = new int[26];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Ctrl+Zが押されるまで繰り返す
while (sc.hasNext()) {
// 入力と文字カウント
CountingCharacters(sc.next());
}
// 表示
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 31, 499], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72]] | 3 | 221 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char c;
char[] ap = new char[] {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T',... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char c;
char[] ap = new char[] {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T',... | [["+", 0, 503, 49, 200, 51, 227, 497, 505, 0, 499], ["-", 0, 503, 49, 200, 51, 227, 51, 518, 0, 45], ["-", 0, 503, 49, 200, 51, 227, 51, 518, 0, 46]] | 3 | 254 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
final int ALPHA_NUM = 26;
Scanner in = new Scanner(System.in);
int[] cnt = new int[ALPHA_NUM];
for (int i = 0; i < ALPHA_NUM; i++)
cnt[i] = 0;
while (in.hasNext()) {
String str = in.next();
... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
final int ALPHA_NUM = 26;
Scanner in = new Scanner(System.in);
int[] cnt = new int[ALPHA_NUM];
for (int i = 0; i < ALPHA_NUM; i++)
cnt[i] = 0;
while (in.hasNext()) {
String str = in.next();
... | [["-", 0, 492, 3, 4, 0, 16, 31, 16, 12, 252], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 227 |
import java.io.*;
import java.util.*;
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) {
Scanner s = null;
String message = "";
try {
s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
while (s.hasNext()) ... | import java.io.*;
import java.util.*;
public class Main {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) {
Scanner s = null;
String message = "";
try {
s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
while (s.hasNext()) ... | [["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491]] | 3 | 318 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s;
int[] alf = new int[26];
while (scan.hasNext()) {
s = scan.next();
for (int i = 0; i < s.length(); i++) {
if ('A' <= s.charAt(i) && s.charAt(i) <=... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s;
int[] alf = new int[26];
while (scan.hasNext()) {
s = scan.next();
for (int i = 0; i < s.length(); i++) {
if ('A' <= s.charAt(i) && s.charAt(i) <=... | [["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]] | 3 | 208 |
#include <stdio.h>
int main(void) {
int i, e;
static int n[26];
char st, al[53] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
do {
e = scanf("%c", &st);
for (i = 0; i < 52; i++)
if (al[i] == st) {
n[i % 26]++;
}
} while (e != EOF);
for (i = 0; i < 26; i++)
prin... | #include <stdio.h>
int main(void) {
int i, e;
static int n[26];
char st, al[53] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
do {
e = scanf("%c", &st);
for (i = 0; i < 52; i++)
if (al[i] == st) {
n[i % 26]++;
}
} while (e != EOF);
for (i = 0; i < 26; i++)
pri... | [["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 121 |
#include <stdio.h>
int main() {
int num, eng[26] = {0}, i;
char ch;
while (scanf("%c", &ch) != EOF) {
if (ch >= 'a' && ch <= 'z') {
eng[ch - 'a']++;
} else if (ch >= 'A' && ch <= 'Z') {
eng[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c :%d\n", 'a' + i, eng[i]);
}
retu... | #include <stdio.h>
int main() {
int num, eng[26] = {0}, i;
char ch;
while (scanf("%c", &ch) != EOF) {
if (ch >= 'a' && ch <= 'z') {
eng[ch - 'a']++;
} else if (ch >= 'A' && ch <= 'Z') {
eng[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, eng[i]);
}
ret... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 131 |
#include <stdio.h>
main() {
char ch;
int counter[26] = {};
while (scanf("%c", &ch) != EOF) {
if ('a' <= ch && ch <= 'z') {
counter[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
counter[ch - 'A']++;
}
}
short i;
for (i = 0; i < 26; i++) {
printf("%c : &d\n", i + 'a', count... | #include <stdio.h>
main() {
char ch;
int counter[26] = {0};
while (scanf("%c", &ch) != EOF) {
if ('a' <= ch && ch <= 'z') {
counter[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
counter[ch - 'A']++;
}
}
short i;
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, coun... | [["+", 0, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 0 | 129 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
char ch[1201] = {0};
int i = 0, j = 0;
int a[26] = {0};
while (gets(ch) == NULL) {
while (ch[i] != '\0') {
j = tolower(ch[i]) - 'a';
if (0 <= j && j <= 26)
a[j]++;
i++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : ... | #include <ctype.h>
#include <stdio.h>
int main(void) {
char ch[1201] = {0};
int i = 0, j = 0;
int a[26] = {0};
while (gets(ch) != NULL) {
i = 0;
while (ch[i] != '\0') {
j = tolower(ch[i]) - 'a';
if (0 <= j && j <= 26)
a[j]++;
i++;
}
}
for (i = 0; i < 26; i++) {
pri... | [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 79], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 0 | 134 |
#include <stdio.h>
#define SIZE 26
int main() {
int i, num;
char ch;
int count[SIZE];
for (i = 0; i < SIZE; i++) {
count[i] = 0;
};
while (scanf("%c", &ch) != EOF) {
if ('A' <= ch && ch <= 'Z') {
ch = ch - 'A' + 'a';
}
num = ch - 'a';
count[num]++;
}
for (i = 0; i < SIZE;... | #include <stdio.h>
#define SIZE 26
int main() {
int i, num;
char ch;
int count[SIZE];
for (i = 0; i < SIZE; i++) {
count[i] = 0;
};
while (scanf("%c", &ch) != EOF) {
if ('A' <= ch && ch <= 'Z') {
ch = ch - 'A' + 'a';
}
num = ch - 'a';
count[num]++;
}
for (i = 0; i < SIZE;... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 143 |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int i, n = 0;
for (i = 'a'; i < 'z'; ++i)
++n;
int ch, sum[n];
for (i = 0; i < n; ++i)
sum[i] = 0;
while (ch = getchar(), ch != '\n') {
if (isalpha(ch)) {
ch = tolower(ch);
sum[ch - 'a'] += 1;
}
}
for... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int i, n = 1;
for (i = 'a'; i < 'z'; ++i)
++n;
int ch, sum[n];
for (i = 0; i < n; ++i)
sum[i] = 0;
while (ch = getchar(), ch != EOF) {
if (isalpha(ch)) {
ch = tolower(ch);
sum[ch - 'a'] += 1;
}
}
for ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 15, 23, 0, 34, 12, 16, 12, 103, 0, 104], ["-", 15, 23, 0, 34, 12, 16, 12, 103, 0, 44], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 12, 22]] | 0 | 146 |
#include <stdio.h>
int main(void) {
char ch;
int count[26] = {}, i;
while (scanf("%c", &ch) != EOF) {
if ('a' <= ch && ch <= 'z') {
count[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
count[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", i + "a", count[i]);
}... | #include <stdio.h>
int main(void) {
char ch;
int count[26] = {}, i;
while (scanf("%c", &ch) != EOF) {
if ('a' <= ch && ch <= 'z') {
count[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
count[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a', count[i]);
}... | [["-", 0, 2, 3, 4, 0, 16, 12, 5, 0, 62], ["+", 0, 2, 3, 4, 0, 16, 12, 103, 0, 104]] | 0 | 129 |
#include <stdio.h>
int main(void) {
int i;
int counter[26] = {0};
char ch;
while (scanf("%c", &ch) != EOF) {
if (ch == EOF)
break;
int num = ch - 'a';
if (0 <= num && num < 26) {
counter[num]++;
} else if (-32 <= num && num < -6) {
counter[num + 32]++;
}
// printf("%c ... | #include <stdio.h>
int main(void) {
int i;
int counter[26] = {0};
char ch;
while (scanf("%c", &ch) != EOF) {
if (ch == EOF)
break;
int num = ch - 'a';
if (0 <= num && num < 26) {
counter[num]++;
} else if (-32 <= num && num < -6) {
counter[num + 32]++;
}
// printf("%c ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 135 |
#include <stdio.h>
int main(void) {
int c;
int i;
int vx[26];
for (i = 0; i < 26; i++)
vx[i] = 0;
while (1) {
c = getchar();
if (c == EOF)
break;
else
for (i = 0; i < 26; i++)
if (c == i + 'a' || c == i + 'A') {
vx[i]++;
break;
}
}
for ... | #include <stdio.h>
int main(void) {
int c;
int i;
int vx[26];
for (i = 0; i < 26; i++)
vx[i] = 0;
while (1) {
c = getchar();
if (c == EOF)
break;
else
for (i = 0; i < 26; i++)
if (c == i + 'a' || c == i + 'A') {
vx[i]++;
break;
}
}
for ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 143 |
#include <stdio.h>
int main(void) {
int n[26] = {0};
char m[1300];
int i, z;
while (1) {
if (scanf("%s", &m) == EOF)
break;
while (1) {
if (m[i] == '\0')
break;
if ('a' <= m[i] && m[i] <= 'z')
n[m[i] - 'a']++;
if ('A' <= m[i] && m[i] <= 'Z')
n[m[i] -... | #include <stdio.h>
int main(void) {
int n[26] = {0};
char m[1300];
int i, z;
while (1) {
if (scanf("%s", &m) == EOF)
break;
i = 0;
while (1) {
if (m[i] == '\0')
break;
if ('a' <= m[i] && m[i] <= 'z')
n[m[i] - 'a']++;
if ('A' <= m[i] && m[i] <= 'Z')
... | [["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 0 | 181 |
#include <ctype.h>
#include <stdio.h>
int main() {
int bun, index = 65, n, i, alp[26] = {0};
scanf("%d", &bun);
while ((bun = getchar()) != EOF) {
if (isalpha(bun)) {
bun = tolower(bun);
i = bun - 97;
alp[i]++;
} else if (isspace) {
} else {
break;
}
}
for (n = 0; n < 2... | #include <ctype.h>
#include <stdio.h>
int main() {
int bun, index = 65, n, i, alp[26] = {0};
scanf("%d", &bun);
while ((bun = getchar()) != EOF) {
if (isalpha(bun)) {
bun = tolower(bun);
i = bun - 97;
alp[i]++;
} else if (isspace) {
} else {
break;
}
}
for (n = 0; n < 2... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 131 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
char moji;
char az[27];
int counter[26] = {};
int i, j, n;
for (i = 0; i < 26; i++) {
az[i] = 'a' + i;
}
while (scanf("%c", &moji) != EOF) {
moji = tolower(moji);
n = moji - 'a';
counter[n]++;
}
for (j = 0; j < 26; j++) {
pri... | #include <ctype.h>
#include <stdio.h>
int main(void) {
char moji;
char az[27];
int counter[26] = {};
int i, j, n;
for (i = 0; i < 26; i++) {
az[i] = 'a' + i;
}
while (scanf("%c", &moji) != EOF) {
moji = tolower(moji);
n = moji - 'a';
counter[n]++;
}
for (j = 0; j < 26; j++) {
pri... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 135 |
// Character Couting
//?????????????????????
#include <stdio.h>
int main(void) {
int a[257] = {0};
int i;
char s_ch[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
char l_ch[] = {'A', 'B'... | // Character Couting
//?????????????????????
#include <stdio.h>
int main(void) {
int a[257] = {0};
int i;
char s_ch[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
char l_ch[] = {'A', 'B'... | [["-", 8, 9, 0, 52, 8, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 52, 8, 1, 0, 11, 17, 107]] | 0 | 313 |
#include <ctype.h>
#include <stdio.h>
int main() {
char ch;
int i, count[26] = {};
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
if ('a' <= ch && ch <= 'z')
count[ch - 'a']++;
}
for (i = 0; i < 26; i++)
printf("%c???%d\n", 'a' + i, count[i]);
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
char ch;
int i, count[26] = {};
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
if ('a' <= ch && ch <= 'z')
count[ch - 'a']++;
}
for (i = 0; i < 26; i++)
printf("%c : %d\n", 'a' + i, count[i]);
return 0;
} | [["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 106 |
#include <stdio.h>
int main(void) {
char a, b;
char ch[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
int num[26] = {};
char c;
for (b = 1; b < 1200; b++) {
c = getchar();
if... | #include <stdio.h>
int main(void) {
char a, b;
char ch[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
int num[27] = {};
char c;
for (b = 1; b < 1200; b++) {
c = getchar();
if... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 104], ["-", 0, 57, 15, 23, 0, 16, 12, 103, 0, 44], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 72], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13]] | 0 | 805 |
#include <stdio.h>
int main(void) {
// 1_8-C Counting Characters
// ?????????????????±??????????????????????????¢???????????????????????°???
// ??°??????????????°??????
char str[1200];
char chr[26];
int i, j, len;
for (j = 0; j < 26; j++) {
chr[j] = 0;
}
// 1?????????????????????
str[0] = g... | #include <stdio.h>
int main(void) {
// 1_8-C Counting Characters
// ?????????????????±??????????????????????????¢???????????????????????°???
// ??°??????????????°??????
char str[1200];
char chr[26];
int i, j, len;
for (j = 0; j < 26; j++) {
chr[j] = 0;
}
// 1?????????????????????
str[0] = g... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 187 |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
char sentence[1200] = {};
int moji_cou[26] = {};
int convert, char_cou;
int len;
//?¨??????\??????????????????????????????
while (gets(sentence) != NULL) {
//???????????????????????????
len = strlen(sentence);
//??????... | #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
char sentence[1200] = {};
int moji_cou[26] = {};
int convert, char_cou;
int len;
//?¨??????\??????????????????????????????
while (gets(sentence) != NULL) {
//???????????????????????????
len = strlen(sentence);
//??????... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 175 |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int main() {
int i;
int len;
char ch;
char text[1200];
int counts[26] = {0};
while (fgets(text, 1200 * sizeof(char), stdin) != NULL) {
for (i = 0, len = strlen(text); i < 1200; i++) {
ch = tolower(text[i]);
if ('a' <= ch && ch <= 'z... | #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main() {
int i;
int len;
char ch;
char text[1200];
int counts[26] = {0};
while (fgets(text, 1200 * sizeof(char), stdin) != NULL) {
for (i = 0, len = strlen(text); i < len; i++) {
ch = tolower(text[i]);
if ('a' <= ch && ch <= 'z'... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 152 |
#include <stdio.h>
int main(void) {
char c;
int i;
int count[26] = {0};
while ((c = getchar()) != EOF) {
if (c >= 'a' && c <= 'z') {
count[c - 'a']++;
} else if (c >= 'A' && c <= 'Z') {
count[c - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c:%d\n", 'a' + i, count[i]);
}
... | #include <stdio.h>
int main(void) {
char c;
int i;
int count[26] = {0};
while ((c = getchar()) != EOF) {
if (c >= 'a' && c <= 'z') {
count[c - 'a']++;
} else if (c >= 'A' && c <= 'Z') {
count[c - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, count[i]);
}... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 129 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
int count[23] = {};
int n, i;
char ch;
while ((ch = getchar()) != EOF) {
ch = tolower(ch);
n = ch - 'a';
count[n]++;
}
for (i = 0; i < 23; i++) {
printf("%c : %d\n", i + 'a', count[i]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main(void) {
int count[26] = {};
int n, i;
char ch;
while ((ch = getchar()) != EOF) {
ch = tolower(ch);
n = ch - 'a';
count[n]++;
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a', count[i]);
}
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 100 |
#include <stdio.h>
#define ALPHA 26
int main(void) {
char s[1200];
int cou[ALPHA] = {0}, i = 0;
scanf("%[^\n]", s);
while (s[i]) {
if (s[i] >= 'a' && s[i] <= 'z')
cou[s[i] - 'a']++;
else if (s[i] >= 'A' && s[i] <= 'Z')
cou[s[i] - 'A']++;
i++;
}
for (i = 0; i < ALPHA; i++)
printf... | #include <stdio.h>
#define ALPHA 26
int main(void) {
char s[1200];
int cou[ALPHA] = {0}, i = 0;
scanf("%[^\r]", s);
while (s[i]) {
if (s[i] >= 'a' && s[i] <= 'z')
cou[s[i] - 'a']++;
else if (s[i] >= 'A' && s[i] <= 'Z')
cou[s[i] - 'A']++;
i++;
}
for (i = 0; i < ALPHA; i++)
printf... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 157 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
char s;
int a[26];
int i;
for (i = 0; i < 26; i++) {
a[i] = 0;
}
while ((s = getchar()) != EOF) {
s = tolower(s);
a[s - 'a'] += 1;
}
for (i = 0; i < 26; i++) {
s = 'a' + i;
printf("%c:%d\n", s, a[i]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main(void) {
char s;
int a[26];
int i;
for (i = 0; i < 26; i++) {
a[i] = 0;
}
while ((s = getchar()) != EOF) {
s = tolower(s);
a[s - 'a'] += 1;
}
for (i = 0; i < 26; i++) {
s = 'a' + i;
printf("%c : %d\n", s, a[i]);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 118 |
#include <ctype.h>
#include <stdio.h>
int main() {
char c, i;
int word[26] = {0};
while (1) {
c = getchar();
if (c == EOF)
break;
if (isalpha(c))
word[tolower(c) - 0x61]++;
}
for (i = 0; i < 26; i++)
printf("%c: %d\n", 0x61 + i, word[i]);
return 0;
} |
#include <ctype.h>
#include <stdio.h>
int main() {
char c, i;
int word[26] = {0};
while (1) {
c = getchar();
if (c == EOF)
break;
if (isalpha(c))
word[tolower(c) - 0x61]++;
}
for (i = 0; i < 26; i++)
printf("%c : %d\n", 0x61 + i, word[i]);
return 0;
} | [["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 96 |
#include <stdio.h>
int main(void) {
#define NUM 26
char str[1200];
int ans[NUM] = {0};
char *p = str;
char c = '0';
int i = 0;
while (scanf("%s", str) != EOF) {
p = str;
while (*p != '\0') {
c = *p;
i = (int)(c - 'A');
if (i >= 0 && i < NUM)
ans[i]++;
else {
... | #include <stdio.h>
int main(void) {
#define NUM 26
char str[1200];
int ans[NUM] = {0};
char *p = str;
char c = '0';
int i = 0;
while (scanf("%s", str) != EOF) {
p = str;
while (*p != '\0') {
c = *p;
i = (int)(c - 'A');
if (i >= 0 && i < NUM)
ans[i]++;
else {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 173 |
#include <stdio.h>
int main(void)
{
int i;
char a[26] = {0}, ch;
while ((ch = getchar()) != EOF) {
if (('a' <= ch) && (ch <= 'z'))
a[ch - 'a']++;
if (('A' <= ch) && (ch <= 'Z'))
a[ch - 'A' + 'a']++;
}
for (i = 'a'; i <= 'z'; i++) {
printf("%c : a[%d]\n", i, a[i - 'a']);
}
retu... | #include <stdio.h>
int main(void)
{
int i;
char a[26] = {0}, ch;
while ((ch = getchar()) != EOF) {
if (('a' <= ch) && (ch <= 'z'))
a[ch - 'a']++;
if (('A' <= ch) && (ch <= 'Z'))
a[ch - 'A']++;
}
for (i = 'a'; i <= 'z'; i++) {
printf("%c : %d\n", i, a[i - 'a']);
}
return 0;
} | [["-", 64, 1, 0, 27, 28, 69, 71, 16, 17, 72], ["-", 0, 27, 28, 69, 71, 16, 12, 103, 0, 104], ["-", 0, 27, 28, 69, 71, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 139 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
char str;
int char_count[26];
int i;
// for(i=0;i<1205;i++)str[i]='\n';
for (i = 0; i < 26; i++)
char_count[i] = 0;
while (scanf("%c", &str) != EOF) {
if (isupper(str)) {
str = tolower(str);
}
if (isalpha(str)) {
char_count... | #include <ctype.h>
#include <stdio.h>
int main(void) {
char str;
int char_count[26];
int i;
// for(i=0;i<1205;i++)str[i]='\n';
for (i = 0; i < 26; i++)
char_count[i] = 0;
while (scanf("%c", &str) != EOF) {
if (isupper(str)) {
str = tolower(str);
}
if (isalpha(str)) {
char_count... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 132 |
#include <ctype.h>
#include <stdio.h>
int main() {
int counter[26] = {0};
int i, num;
char ch;
while (scanf("%c", &ch) != EOF) {
if (isupper(ch)) {
ch = tolower(ch);
}
num = ch - 'a';
counter[num]++;
}
for (i = 0; i < 26; i++) {
printf("%c:%d\n", i + 'a',
counter[i])... | #include <ctype.h>
#include <stdio.h>
int main() {
int counter[26] = {0};
int i, num;
char ch;
while (scanf("%c", &ch) != EOF) {
if (isupper(ch)) {
ch = tolower(ch);
}
num = ch - 'a';
counter[num]++;
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a',
counter[i]... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 112 |
#include <stdio.h>
int main(void) {
int num;
int i;
int cnt[26];
char ch;
for (i = 0; i < 26; i++) {
cnt[i] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (ch >= 'A' && ch <= 'Z') {
num = ch + '32' - 'a';
cnt[num]++;
} else if (ch >= 'a' && ch <= 'z') {
num = ch - 'a';
... | #include <stdio.h>
int main(void) {
int num;
int i;
int cnt[26];
char ch;
for (i = 0; i < 26; i++) {
cnt[i] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (ch >= 'A' && ch <= 'Z') {
num = ch + 32 - 'a';
cnt[num]++;
} else if (ch >= 'a' && ch <= 'z') {
num = ch - 'a';
c... | [["-", 0, 11, 12, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 11, 12, 16, 31, 16, 12, 103, 0, 125], ["-", 12, 16, 31, 16, 12, 103, 0, 42, 0, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 0 | 165 |
#include <ctype.h>
#include <stdio.h>
int main() {
int i, cnt[26] = {};
char c;
while (scanf("%c", &c) != EOF) {
if (isupper(c))
cnt[tolower(c) - 'a']++;
else
cnt[c - 'a']++;
}
for (i = 0; i < 26; i++) {
printf("%c:%d\n", 'a' + i, cnt[i]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
int i, cnt[26] = {};
char c;
while (scanf("%c", &c) != EOF) {
if (isupper(c))
cnt[tolower(c) - 'a']++;
else
cnt[c - 'a']++;
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, cnt[i]);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 108 |
#include <stdio.h>
int main() {
int j, num, counter[1201];
char ch;
for (j = 0; j < (int)('z' - 'a'); j++) {
counter[j] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (ch < 'Z') {
num = (int)(ch - 'A');
} else if (ch < 'z') {
num = (int)(ch - 'a');
}
counter[num]++;
}
fo... | #include <stdio.h>
int main() {
int j, num, counter[1201];
char ch;
for (j = 0; j <= (int)('z' - 'a'); j++) {
counter[j] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (ch <= 'Z') {
num = (int)(ch - 'A');
} else if (ch <= 'z') {
num = (int)(ch - 'a');
}
counter[num]++;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 176 |
#include <stdio.h>
int main(void) {
char ch;
int num[26] = {0};
int i;
while (scanf("%c", &ch) != EOF) {
// scanf("%c",&ch);
for (i = 0; i < 25; i++) {
if (ch == i + 65) {
num[i]++;
break;
} else if (ch == i + 97) {
num[i]++;
break;
}
}
}
for (i... | #include <stdio.h>
int main(void) {
char ch;
int num[26] = {0};
int i;
while (scanf("%c", &ch) != EOF) {
// scanf("%c",&ch);
for (i = 0; i < 26; i++) {
if (ch == i + 65) {
num[i]++;
break;
} else if (ch == i + 97) {
num[i]++;
break;
}
}
}
for (i... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 130 |
#include <stdio.h>
i, a, t[27];
int main(void) {
char c[1201] = {};
for (i = 0, scanf("%[^\r]", c); c[i] != '\0'; i++) {
a = 64 < c[i] && c[i] < 91 ? c[i] - 'A'
: 96 < c[i] && c[i] < 123 ? c[i] - 'a'
: 26;
t[a]++;
}
for (i = 0; i < 26; i++) {
printf("%c :... | #include <stdio.h>
i, a, t[27];
int main(void) {
char c[1201] = {};
for (i = 0, scanf("%[^\r]", c); c[i] != '\0'; i++) {
a = 64 < c[i] && c[i] < 91 ? c[i] - 'A'
: 96 < c[i] && c[i] < 123 ? c[i] - 'a'
: 26;
t[a]++;
}
for (i = 0; i < 26; i++) {
printf("%c :... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 146 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
int moji;
int count[26] = {0};
while ((moji = getchar()) != EOF) {
if (isupper(moji)) {
moji = tolower(moji);
count[moji - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c:%d\n", 'a' + i, count[i]);
}
} | #include <ctype.h>
#include <stdio.h>
int main(void) {
int moji;
int count[26] = {0};
while ((moji = getchar()) != EOF) {
if (isupper(moji))
moji = tolower(moji);
count[moji - 'a']++;
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, count[i]);
}
} | [["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 99 |
#include <ctype.h>
#include <stdio.h>
int main() {
int c;
int i = 0, cnt[128] = {0};
while ((c = getchar()) != EOF) {
cnt[c]++;
i++;
}
for (i = 0; i < 26; i++) {
cnt[i + 97] += cnt[i + 65];
printf("%c:%d\n", i + 97, cnt[i + 97]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
int c;
int i = 0, cnt[128] = {0}; // ASCII????????????0~127
while ((c = getchar()) != EOF) {
cnt[c]++;
i++;
}
for (i = 0; i < 26; i++) {
cnt[i + 97] += cnt[i + 65];
printf("%c : %d\n", i + 97, cnt[i + 97]);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 101 |
#include <ctype.h>
#include <stdio.h>
int main() {
int c;
int cnt[256] = {0};
while ((c = getchar()) != EOF) {
if (isupper(c)) {
c = tolower(c);
}
cnt[c]++;
}
for (c = 'a'; c <= 'z'; c++) {
printf("%c:%d\n", c, cnt[c]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
int c;
int cnt[256] = {0};
while ((c = getchar()) != EOF) {
if (isupper(c)) {
c = tolower(c);
}
cnt[c]++;
}
for (c = 'a'; c <= 'z'; c++) {
printf("%c : %d\n", c, cnt[c]);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 96 |
#include <stdio.h>
#include <string.h>
int main(void) {
char s;
int i, j, k[26] = {0}, a = 0;
while (scanf("%c", &s) != EOF) {
for (j = 0; j < 25; j++) {
if (s == 'a' + j || s == 'A' + j) {
k[j]++;
}
}
}
for (i = 0; i < 25; i++) {
printf("%c : %d\n", 'a' + i, k[i]);
}
ret... |
#include <stdio.h>
#include <string.h>
int main(void) {
char s;
int i, j, k[26] = {0}, a = 0;
while (scanf("%c", &s) != EOF) {
for (j = 0; j < 26; j++) {
if (s == 'a' + j || s == 'A' + j) {
k[j]++;
}
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, k[i]);
}
ret... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 126 |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
int i, x, c[26] = {};
char ch;
while (scanf("%c", &ch) != EOF) {
if (isupper(ch)) {
ch = tolower(ch);
}
x = ch - 'a';
c[x]++;
}
for (i = 0; i < 26; i++) {
printf("%c:%d\n", 'a' + i, c[i]);
}
return 0;
}
| #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main(void) {
int i, x, c[26] = {};
char ch;
while (scanf("%c", &ch) != EOF) {
if (isupper(ch)) {
ch = tolower(ch);
}
x = ch - 'a';
c[x]++;
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, c[i]);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 112 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
char input;
int counts[26] = {};
int i;
for (i = 0; i < 1200; i++) {
scanf(" %c", &input);
if (isalpha(input)) {
if (isupper(input))
counts[tolower(input) - 'a']++;
else
counts[input - 'a']++;
}
}
for (i = 0; i <... | #include <ctype.h>
#include <stdio.h>
int main(void) {
char input;
int counts[26] = {};
int i;
for (i = 0; i < 1200; i++) {
scanf("%c", &input);
if (isalpha(input)) {
if (isupper(input))
counts[tolower(input) - 'a']++;
else
counts[input - 'a']++;
}
}
for (i = 0; i < ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 126 |
#include <ctype.h>
#include <stdio.h>
int main() {
int alphabet[26] = {};
char ch;
while (scanf("%c", &ch) != EOF) {
if (isalpha(ch)) {
alphabet[tolower(ch) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c:", i + 97);
printf("%d\n", alphabet[i]);
}
return 0;
}
| #include <ctype.h>
#include <stdio.h>
int main() {
int alphabet[26] = {};
char ch;
while (scanf("%c", &ch) != EOF) {
if (isalpha(ch)) {
alphabet[tolower(ch) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c : ", i + 97);
printf("%d\n", alphabet[i]);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 103 |
#include <stdio.h>
int main(void) {
char ch;
int i, a[26] = {0};
while ((ch = getchar()) != EOF) {
printf("a");
if ('a' <= ch && ch <= 'z') {
a[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
a[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, a[i]);... | #include <stdio.h>
int main(void) {
char ch;
int i, a[26] = {0};
while ((ch = getchar()) != EOF) {
if ('a' <= ch && ch <= 'z') {
a[ch - 'a']++;
} else if ('A' <= ch && ch <= 'Z') {
a[ch - 'A']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, a[i]);
}
return 0;... | [["-", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 0 | 135 |
#include <ctype.h>
#include <stdio.h>
int main(void) {
// Your code here!
int count[26] = {0};
char ch;
int i, num;
while (scanf("%c", &ch) != EOF) {
if (islower(ch)) {
num = ch - 'a';
} else if (isupper(ch)) {
num = ch - 'A';
} else {
continue;
}
count[num]++;
}
for... | #include <ctype.h>
#include <stdio.h>
int main(void) {
// Your code here!
int count[26] = {0};
char ch;
int i, num;
while (scanf("%c", &ch) != EOF) {
if (islower(ch)) {
num = ch - 'a';
} else if (isupper(ch)) {
num = ch - 'A';
} else {
continue;
}
count[num]++;
}
for... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 129 |
#include <stdio.h>
int main() {
char al[26] = {};
char b[1200] = {};
int i, n;
i = 0;
while (scanf("%c", &b[i]) != EOF) {
if (b[i] >= 'A' && b[i] <= 'Z') {
n = b[i] - 'A';
al[n]++;
}
if (b[i] >= 'a' && b[i] <= 'z') {
n = b[i] - 'a';
al[n]++;
}
}
for (i = 0; i < 26;... | #include <stdio.h>
int main() {
int al[26] = {};
char b[1200] = {};
int i, n;
i = 0;
while (scanf("%c", &b[i]) != EOF) {
if (b[i] >= 'A' && b[i] <= 'Z') {
n = b[i] - 'A';
al[n]++;
} else if (b[i] >= 'a' && b[i] <= 'z') {
n = b[i] - 'a';
al[n]++;
}
}
for (i = 0; i < 26;... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 2, 3, 4, 0, 16, 31, 103, 0, 104], ["+", 0, 2, 3, 4, 0, 16, 31, 103, 0, 125], ["+", 8, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 8, 1, 0, 2, 3, 4, 0, 69, 71, 22], ["+", 8, 1, 0, 2, 3, 4, 0, ... | 0 | 160 |
#include <ctype.h>
#include <stdio.h>
int main() {
char ch;
int counter[26];
int i;
for (i = 0; i < 26; i++) {
counter[i] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (isalpha(ch)) {
int num = ch - 'a';
counter[num]++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a'... | #include <ctype.h>
#include <stdio.h>
int main() {
char ch;
int counter[26];
int i;
for (i = 0; i < 26; i++) {
counter[i] = 0;
}
while (scanf("%c", &ch) != EOF) {
if (isalpha(ch)) {
int num = tolower(ch) - 'a';
counter[num]++;
}
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n"... | [["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 25]] | 0 | 121 |
#include <ctype.h>
#include <stdio.h>
main() {
char str, ch = 97;
int counter[26] = {0}, i;
int num;
while (~scanf("%c", &str)) {
if (tolower(str) == str) {
num = str - 'a';
counter[num]++;
} else if (toupper(str) == str) {
num = tolower(str) - 'a';
counter[num]++;
}
}
fo... | #include <ctype.h>
#include <stdio.h>
main() {
char str, ch = 97;
int counter[26] = {0}, i;
int num;
while (~scanf("%c", &str)) {
if (tolower(str) == str) {
num = str - 'a';
counter[num]++;
} else if (toupper(str) == str) {
num = tolower(str) - 'a';
counter[num]++;
}
}
fo... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 137 |
#include <stdio.h>
int main(int argc, char *argv[]) {
char c, a[26];
int i;
for (i = 0; i < 26; i++) {
a[i] = 0;
}
while ((c = getchar()) != EOF) {
if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z')) {
if ('a' <= c && c <= 'z') {
a[c - 'a']++;
} else {
a[c - 'A']++;
... | #include <stdio.h>
int main(int argc, char *argv[]) {
char c, a[26];
int i;
for (i = 0; i < 26; i++) {
a[i] = 0;
}
while ((c = getchar()) != EOF) {
if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z')) {
if ('a' <= c && c <= 'z') {
a[c - 'a']++;
} else {
a[c - 'A']++;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 173 |
#include <iostream>
#include <string>
using namespace std;
char upper(char C) {
if (C >= 'A' && C <= 'Z')
C = C + 'a' - 'A';
return C;
}
int main() {
int num[26] = {0};
char alfa[26] = {0};
for (int i = 0; i < 26; i++)
alfa[i] = 'a' + i;
string str;
while (cin >> str) {
for (int i = 0; i < str... | #include <iostream>
#include <string>
using namespace std;
char upper(char C) {
if (C >= 'A' && C <= 'Z')
C = C + 'a' - 'A';
return C;
}
int main() {
int num[26] = {0};
char alfa[26] = {0};
for (int i = 0; i < 26; i++)
alfa[i] = 'a' + i;
string str;
while (cin >> str) {
for (int i = 0; i < str... | [["+", 8, 9, 0, 1, 0, 11, 31, 69, 28, 22], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 70], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 73], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 221 |
#define _CRT_SECURE_NO_WARNINGS
#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char ch;
int cnt[26] = {};
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
if (isalpha(ch)) {
cnt[ch - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c: %... | #define _CRT_SECURE_NO_WARNINGS
#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
char ch;
int cnt[26] = {};
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
if (isalpha(ch)) {
cnt[ch - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c : ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 110 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char a;
int c[26] = {};
while (cin >> a) {
a = tolower(a);
if (isalpha(a)) {
c[a - 'a']++;
}
}
cout << "a";
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a', c[i]);
// cout << (char)i+'a' << " : " <... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char a;
int c[26] = {};
while (cin >> a) {
a = tolower(a);
if (isalpha(a)) {
c[a - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", i + 'a', c[i]);
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int a[26] = {0}, i = 0;
char s;
while (i < 1200) {
cin >> s;
if ('a' <= s && s <= 'z') {
a[s - 'a']++;
} else if ('A' <= s && s <= 'Z') {
a[s - 'A']++;
}
i++;
}
for (int i = 0; i < 26; i++) {
cout << (char)(i + 'a') ... | #include <iostream>
using namespace std;
int main() {
int a[26] = {0}, i = 0;
char s;
while (i < 1200 && cin >> s) {
if ('a' <= s && s <= 'z') {
a[s - 'a']++;
} else if ('A' <= s && s <= 'Z') {
a[s - 'A']++;
}
i++;
}
for (int i = 0; i < 26; i++) {
cout << (char)(i + 'a') <<... | [["-", 0, 14, 8, 9, 0, 52, 15, 339, 0, 25], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 45], ["+", 51, 16, 31, 346, 3, 347, 0, 16, 17, 98], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 15, 339, 51, 16, 31, 346, 3, 347, 0, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8,... | 1 | 140 |
#include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char ch, x;
int ans, num, counter[100] = {}, i, j;
while (cin >> ch) {
if (ch > 'A' && ch < 'Z') {
ch += 'a' - 'A';
}
num = ch - 'a';
counter[num]++;
}
for (i = 0; i < 26; i++) {
x = i + 'a';
... | #include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char ch, x;
int ans, num, counter[100] = {}, i, j;
while (cin >> ch) {
if (ch >= 'A' && ch <= 'Z') {
ch += 'a' - 'A';
}
num = ch - 'a';
counter[num]++;
}
for (i = 0; i < 26; i++) {
x = i + 'a';... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 131 |
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> alphabet(26, 0);
string S;
while (cin >> S) {
for (int i = 0; i < S.size(); i++) {
if (S[i] - 'a' >= 0 && S[i] - 'a' < 26) {
alphabet[S[i] - 'a']++;
}
if (S[i] ... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> alphabet(26, 0);
string S;
while (cin >> S) {
for (int i = 0; i < S.size(); i++) {
if (S[i] - 'a' >= 0 && S[i] - 'a' < 26) {
alphabet[S[i] - 'a']++;
}
if (S[i] - 'A' >= 0 && S[i]... | [["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 182 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int cnt[26] = {};
char ch;
while (cin >> ch) {
if (isalpha(ch)) {
cnt[tolower(ch) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << i + 'a' << " : " << cnt[i] << endl;
}
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int cnt[26] = {};
char ch;
while (cin >> ch) {
if (isalpha(ch)) {
cnt[tolower(ch) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << char(i + 'a') << " : " << cnt[i] << endl;
}
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 2, 63, 40], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int freq[26];
int main() {
string str;
while (cin >> str) {
for (char c : str) {
if (isalpha(c))
freq[tolower(c) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << (char)(i + 'a') << ":" << freq[i] << endl;
}
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int freq[26];
int main() {
string str;
while (cin >> str) {
for (char c : str) {
if (isalpha(c))
freq[tolower(c) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
cout << (char)(i + 'a') << " : " << freq[i] << endl;
}
... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 104 |
#include <cctype>
#include <iostream>
using namespace std;
int main() {
char mozi;
int cou[30] = {}, i = 0;
while (cin >> mozi) {
if (islower(mozi)) {
cou[mozi - 'a']++;
}
if (isupper(mozi)) {
cou[mozi - 'A']++;
}
i++;
}
for (i = 0; i < 26; i++) {
char last = 0;
last = ... | #include <cctype>
#include <iostream>
using namespace std;
int main() {
char mozi;
int cou[30] = {}, i = 0;
while (cin >> mozi) {
if (islower(mozi)) {
cou[mozi - 'a']++;
}
if (isupper(mozi)) {
cou[mozi - 'A']++;
}
i++;
}
for (i = 0; i < 26; i++) {
char last = 0;
last = ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 122 |
#include <cctype>
#include <cstdio>
int counter[26] = {};
char ch;
int main() {
while (scanf("%c", &ch) != EOF) {
if (!isalpha(ch))
continue;
if (isupper(ch))
ch = tolower(ch);
counter[ch - 'a']++;
}
for (int i = 0; i < 26; i++) {
printf("%c: %d\n", 'a' + i, counter[i]);
}
retur... | #include <cctype>
#include <cstdio>
int counter[26] = {};
char ch;
int main() {
while (scanf("%c", &ch) != EOF) {
if (!isalpha(ch))
continue;
if (isupper(ch))
ch = tolower(ch);
counter[ch - 'a']++;
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, counter[i]);
}
retu... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 110 |
#include <ctype.h>
#include <stdio.h>
int main() {
int i, count[26] = {0};
char ch;
while ((ch = getchar()) != EOF) {
ch = tolower(ch);
count[ch - 'a']++;
}
for (i = 0; i < 26; i++) {
printf("%c; : %d\n", 'a' + i, count[i]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
int i, count[26] = {0};
char ch;
while ((ch = getchar()) != EOF) {
ch = tolower(ch);
count[ch - 'a']++;
}
for (i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, count[i]);
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 93 |
#include <iostream>
int main(void) {
char letter, ch;
int count[26] = {};
while (std::cin >> letter) {
if (std::isalpha(letter)) {
++count[std::tolower(letter) - 'a'];
}
}
for (int i = 0; i < 26; i++) {
ch = 'a' + i;
std::cout << ch << ":" << count[i] << std::endl;
}
return 0;
} | #include <iostream>
int main(void) {
char letter, ch;
int count[26] = {};
while (std::cin >> letter) {
if (std::isalpha(letter)) {
++count[std::tolower(letter) - 'a'];
}
}
for (int i = 0; i < 26; i++) {
ch = 'a' + i;
std::cout << ch << " : " << count[i] << std::endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 105 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int x[140] = {0};
char a;
while (1) {
a = getchar();
if (a == 10)
break;
if (a < 97)
x[a + 32]++;
else
x[a]++;
}
for (int i = 97; i < 123; i++) {
cout << (char)i << ':' << x[i] << endl;
}
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int x[140] = {0};
char a;
while (1) {
a = getchar();
if (a == EOF)
break;
if (a < 97)
x[a + 32]++;
else
x[a]++;
}
for (int i = 97; i < 123; i++) {
cout << (char)i << " : " << x[i] << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
#include <ctype.h>
#include <stdio.h>
int main() {
int c;
int cnt[500] = {0};
while (c != '\n') {
c = getchar();
if (islower(c)) {
cnt[c]++;
} else {
cnt[c + 32]++;
}
}
for (c = 'a'; c <= 'z'; c++) {
printf("%c:%d\n", c, cnt[c]);
}
return 0;
} | #include <ctype.h>
#include <stdio.h>
int main() {
int c;
int cnt[500] = {0};
while (c != EOF) {
c = getchar();
if (islower(c)) {
cnt[c]++;
} else {
cnt[c + 32]++;
}
}
for (c = 'a'; c <= 'z'; c++) {
printf("%c : %d\n", c, cnt[c]);
}
return 0;
} | [["-", 0, 52, 15, 339, 51, 16, 12, 103, 0, 104], ["-", 0, 52, 15, 339, 51, 16, 12, 103, 0, 44], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 102 |
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
int main(void) {
char ch, i;
int n[26] = {0};
int k = 0;
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
for (i = 'a'; i < 'z'; i++) {
if (ch == i) {
n[ch - 'a'] += 1;
break;
}
}
}
for (k = 0; k < 26; k+... | #include <ctype.h>
#include <limits.h>
#include <stdio.h>
int main(void) {
char ch, i;
int n[26] = {0};
int k = 0;
while (scanf("%c", &ch) != EOF) {
ch = tolower(ch);
for (i = 'a'; i <= 'z'; i++) {
if (ch == i) {
n[ch - 'a'] += 1;
break;
}
}
}
for (k = 0; k < 26; k... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 128 |
#include <cctype>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char c;
int arr[26] = {};
while (cin >> c) {
if (isalpha(c))
arr[tolower(c) - 'a']++;
}
char alpha[27] = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 26; i++) {
cout << alpha[i] << ':' << arr[i] <... | #include <cctype>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
char c;
int arr[26] = {};
while (cin >> c) {
if (isalpha(c))
arr[tolower(c) - 'a']++;
}
char alpha[27] = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < 26; i++) {
cout << alpha[i] << " : ";
cout... | [["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22]] | 1 | 103 |
#include <stdio.h>
#include <string.h>
int main() {
int i, a, len;
char st[1201];
int num;
int alp[26] = {0};
while (scanf("%s", st) != EOF) {
a = 0;
len = strlen(st);
while (1) {
num = st[a] - 'a';
if (st[a] >= 97 && st[a] <= 122) {
alp[num]++;
} else if (st[a] >= 65 && ... | /*8_C*/
#include <stdio.h>
#include <string.h>
int main() {
int i, a, len;
char st[1201];
int num;
int alp[26] = {0};
while (scanf("%s", st) != EOF) {
a = 0;
len = strlen(st);
while (1) {
num = st[a] - 'a';
if (st[a] >= 97 && st[a] <= 122) {
alp[num]++;
} else if (st[a] >... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 176 |
#include <cstdio>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int count[300] = {0};
char word;
while ((word = getchar()) != EOF) {
cin >> word;
count[word]++;
}
for (int i = 97; i <= 122; i++)
printf("%c : %d\n", i, count[i] + count[i - 32]);
re... | #include <cstdio>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int count[300] = {0};
char word;
while ((word = getchar()) != EOF) {
count[word]++;
}
for (int i = 97; i <= 122; i++)
printf("%c : %d\n", i, count[i] + count[i - 32]);
return 0;
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 94 |
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <string>
#include <typeinfo>
#include <vector>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main() {
string str;
vector<int> v(26, 0);
while (getline(cin, str)) {
t... | #include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <string>
#include <typeinfo>
#include <vector>
#define _USE_MATH_DEFINES
#include <cmath>
using namespace std;
int main() {
string str;
vector<int> v(26, 0);
while (getline(cin, str)) {
t... | [["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 17, 131], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]] | 1 | 182 |
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string str;
int alp[26] = {};
while (getline(cin, str)) {
for (int i = 0, l = str.size(); i < l; i++) {
if (str[i] >= 'a' && str[i] <= 'z') {
alp[str[i] - 'a']++;
} else if (str[i] >= 'A' && str[i] <=... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
string str;
int alp[26] = {};
while (getline(cin, str)) {
for (int i = 0, l = str.size(); i < l; i++) {
if (str[i] >= 'a' && str[i] <= 'z') {
alp[str[i] - 'a']++;
} else if (str[i] >= 'A' && str[i] <=... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 169 |
#include <bits/stdc++.h>
using namespace std;
int main() {
map<char, int> count;
string str;
while (cin >> str) {
for (int i = 0; i < (int)str.size(); i++) {
if (isupper(str[i])) {
str[i] = tolower(str[i]);
}
}
for (int i = 0; i < (int)str.size(); i++) {
count[str[i]]++... | #include <bits/stdc++.h>
using namespace std;
int main() {
map<char, int> count;
string str;
while (cin >> str) {
for (int i = 0; i < (int)str.size(); i++) {
if (isupper(str[i])) {
str[i] = tolower(str[i]);
}
}
for (int i = 0; i < (int)str.size(); i++) {
count[str[i]]++... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 70], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 22], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 73]] | 1 | 144 |
#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int alph[26] = {};
char x;
int num;
for (int i = 0; i < 1000; i++) {
cin >> x;
if (isalpha(x)) {
if (islower(x))
num = x - 'a';
else
num = x - 'A';
alph[num]++;
}
}
for ... | #include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int alph[26] = {};
char x;
int num;
for (int i = 0; i < 1000; i++) {
cin >> x;
if (isalpha(x)) {
if (islower(x))
num = x - 'a';
else
num = x - 'A';
alph[num]++;
}
x = ' '... | [["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]] | 1 | 128 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int i;
int count[26] = {0};
string ss, ss2;
while (!cin.eof()) {
cin >> ss2;
ss = ss + ss2;
}
for (i = 0; i < (int)ss.size(); i++) {
if (((int)ss[i] >= 65) && ((int)ss[i] <= 90)) {
ss[i] = ss[i... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int i;
int count[26] = {0};
string ss, ss2;
while (!cin.eof()) {
getline(cin, ss2);
ss = ss + ss2;
}
for (i = 0; i < (int)ss.size(); i++) {
if (((int)ss[i] >= 65) && ((int)ss[i] <= 90)) {
ss[i]... | [["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25]] | 1 | 203 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
string line;
int count[26];
char c;
for (int i = 0; i < 26; ++i) {
count[i] = 0;
}
while (cin >> line) {
for (int i = 0; (int)i < line.size(); ++i) {
c = line.at(i);
if (c >= 'A' && c <= 'Z') {
count[c -... | /*
* itp08_c.cpp
*
* Created on: 2013/06/09
* Author: nakataninaoki
*/
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
string line;
int count[26];
char c;
for (int i = 0; i < 26; ++i) {
count[i] = 0;
}
while (cin >> line) {
for (int i = 0; (int)i < line.size()... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 180 |
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int i;
char ch;
int num[26];
for (i = 0; i < 26; i++)
num[i] = 0;
while (cin >> ch) {
if (ch >= 'a' && ch <= 'z')
num[ch - 'a']++;
else if (ch >= 'A' && ch <= 'Z')
num[ch - 'A']++;
}
for (i = 0; i < 26; i++) ... | #include <cstring>
#include <iostream>
using namespace std;
int main() {
int i;
char ch;
int num[26];
for (i = 0; i < 26; i++)
num[i] = 0;
while (cin >> ch) {
if (ch >= 'a' && ch <= 'z')
num[ch - 'a']++;
else if (ch >= 'A' && ch <= 'Z')
num[ch - 'A']++;
}
for (i = 0; i < 26; i++) ... | [["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.