結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー | data9824 |
提出日時 | 2017-03-31 22:33:34 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 69,036 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-23 13:57:21 |
合計ジャッジ時間 | 1,168 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <string> #include <map> using namespace std; int main() { string s; cin >> s; map<char, int> counts; for (size_t i = 0; i < s.size(); ++i) { counts[s[i]]++; } cout << counts['Y'] << " " << counts['E'] << " " << counts['A'] << " " << counts['H'] << " " << counts['!'] << endl; return 0; }