Task: | Merkkijono |
Sender: | siirikuoppala |
Submission time: | 2016-07-28 14:48:05 +0300 |
Language: | C++ |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.05 s | details |
#2 | ACCEPTED | 0.05 s | details |
#3 | ACCEPTED | 0.05 s | details |
#4 | ACCEPTED | 0.04 s | details |
#5 | ACCEPTED | 0.04 s | details |
#6 | ACCEPTED | 0.08 s | details |
#7 | ACCEPTED | 0.11 s | details |
#8 | ACCEPTED | 0.09 s | details |
#9 | ACCEPTED | 0.08 s | details |
#10 | ACCEPTED | 0.08 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:9:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<s.size(); ++i) t[s[i]-'a']=1; ^
Code
#include <iostream> using namespace std; int t[26], v; int main(){ string s; cin >> s; for(int i=0; i<s.size(); ++i) t[s[i]-'a']=1; for(int i=0; i<26; ++i) v+=t[i]; cout << v; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
aaabbbbabaabaaabababbbabaaabaa... |
correct output |
---|
2 |
user output |
---|
2 |
Test 2
Verdict: ACCEPTED
input |
---|
cbacacddaddbacbbdaddddbcbdabbd... |
correct output |
---|
4 |
user output |
---|
4 |
Test 3
Verdict: ACCEPTED
input |
---|
cdaghhhaeffdeaebghdeddaabeefcf... |
correct output |
---|
8 |
user output |
---|
8 |
Test 4
Verdict: ACCEPTED
input |
---|
nliffndcjfogbocabfmihaafkmofom... |
correct output |
---|
16 |
user output |
---|
16 |
Test 5
Verdict: ACCEPTED
input |
---|
qgfshyfgzmtfhwxwumpjbvndunxnlv... |
correct output |
---|
26 |
user output |
---|
26 |
Test 6
Verdict: ACCEPTED
input |
---|
bbbbbaaabbbbabaaabaabbaaaaaaaa... |
correct output |
---|
2 |
user output |
---|
2 |
Test 7
Verdict: ACCEPTED
input |
---|
bdadabbdacabbcaadccbccdcccdcbc... |
correct output |
---|
4 |
user output |
---|
4 |
Test 8
Verdict: ACCEPTED
input |
---|
eabdafcbhfhbbhgecadhbcababeccc... |
correct output |
---|
8 |
user output |
---|
8 |
Test 9
Verdict: ACCEPTED
input |
---|
nkcaadeckamdecneoeedeajpoodhjo... |
correct output |
---|
16 |
user output |
---|
16 |
Test 10
Verdict: ACCEPTED
input |
---|
tgagtoqkawzqmbngjfspaielslkjhi... |
correct output |
---|
26 |
user output |
---|
26 |