Submission #505607


Source Code Expand

#include <iostream>
#include <string>
using namespace std;

int main(){
	string S;
	cin >> S;
	int cnt[6] = {0,0,0,0,0,0};
	for ( int i = 0; i < S.size(); i++ ){
		cnt[S[i]-'A']++;
	}
	cout << cnt[0] << " " << cnt[1] << " " << cnt[2] << " " << cnt[3] << " " << cnt[4] << " " << cnt[5] << endl;
	
return 0;}

Submission Info

Submission Time
Task B - 文字数カウント
User kana
Language C++ (GCC 4.9.2)
Score 100
Code Size 319 Byte
Status AC
Exec Time 27 ms
Memory 932 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 19
Set Name Test Cases
Sample example_0.txt, example_1.txt, example_2.txt
All allone_0.txt, allone_1.txt, example_0.txt, example_1.txt, example_2.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, maxrand_0.txt, maxrand_1.txt, maxrand_2.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, example_0.txt, example_1.txt, example_2.txt
Case Name Status Exec Time Memory
allone_0.txt AC 24 ms 800 KiB
allone_1.txt AC 25 ms 924 KiB
example_0.txt AC 26 ms 796 KiB
example_1.txt AC 26 ms 924 KiB
example_2.txt AC 25 ms 728 KiB
handmade_0.txt AC 25 ms 924 KiB
handmade_1.txt AC 24 ms 804 KiB
handmade_2.txt AC 26 ms 932 KiB
maxrand_0.txt AC 27 ms 792 KiB
maxrand_1.txt AC 25 ms 924 KiB
maxrand_2.txt AC 24 ms 808 KiB
random_0.txt AC 24 ms 924 KiB
random_1.txt AC 24 ms 808 KiB
random_2.txt AC 24 ms 800 KiB
random_3.txt AC 23 ms 928 KiB
random_4.txt AC 26 ms 808 KiB