結果
問題 | No.3020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-04-01 00:07:33 |
言語 | C++11 (gcc 4.8.5) |
結果 |
AC
|
実行時間 | 8 ms |
コード長 | 602 Byte |
コンパイル時間 | 1,030 ms |
使用メモリ | 1,660 KB |
最終ジャッジ日時 | 2019-02-10 21:49:23 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
1.txt | AC | 3 ms
1,524 KB |
2.txt | AC | 3 ms
1,524 KB |
3.txt | AC | 3 ms
1,532 KB |
4.txt | AC | 3 ms
1,524 KB |
5.txt | AC | 2 ms
1,520 KB |
6.txt | AC | 8 ms
1,656 KB |
7.txt | AC | 3 ms
1,536 KB |
8.txt | AC | 3 ms
1,532 KB |
9.txt | AC | 5 ms
1,632 KB |
10.txt | AC | 5 ms
1,636 KB |
11.txt | AC | 7 ms
1,656 KB |
12.txt | AC | 7 ms
1,660 KB |
13.txt | AC | 8 ms
1,660 KB |
14.txt | AC | 7 ms
1,656 KB |
15.txt | AC | 5 ms
1,656 KB |
16.txt | AC | 7 ms
1,656 KB |
17.txt | AC | 6 ms
1,656 KB |
18.txt | AC | 7 ms
1,656 KB |
19.txt | AC | 8 ms
1,656 KB |
20.txt | AC | 8 ms
1,656 KB |
ソースコード
#include <bits/stdc++.h> #define rep(i, a, n) for(int i = a; i < n; i++) #define repb(i, a, b) for(int i = a; i >= b; i--) #define all(a) a.begin(), a.end() #define o(a) cout << a << endl #define int long long #define fi first #define se second using namespace std; typedef pair<int, int> P; signed main(){ string s = "YEAH!", t; cin >> t; int ans[5] = {}; rep(i, 0, t.size()){ rep(j, 0, 5){ if(s[j] == t[i]){ ans[j]++; } } } rep(i, 0, 5){ cout << ans[i]; if(i != 4) cout << " "; } cout << endl; }