結果
問題 |
No.8020 サンシャイン◯崎
|
ユーザー |
|
提出日時 | 2017-03-31 23:20:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 1,000 ms |
コード長 | 601 bytes |
コンパイル時間 | 1,008 ms |
コンパイル使用メモリ | 107,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 14:02:55 |
合計ジャッジ時間 | 1,781 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; string s; char box[5] = { 'Y','E','A','H','!' }; int ans[5]; int main() { cin >> s; for (auto i : s) { for (int j = 0; j < 5; j++) { if (i == box[j])ans[j]++; } } for (int i = 0; i < 5; i++) { cout << ans[i] << " "; } cout << endl; return 0; }