結果
| 問題 |
No.8020 サンシャイン◯崎
|
| ユーザー |
onkohdondo
|
| 提出日時 | 2017-03-31 22:49:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 1,460 ms |
| コンパイル使用メモリ | 165,412 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 14:01:20 |
| 合計ジャッジ時間 | 2,346 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, a, b) for(int i=a; i<b; i++)
char s[6]="YEAH!";
int main(){
char str[112345];
scanf("%s", str);
int n=strlen(str);
int ans[5]={0, 0, 0, 0, 0};
REP(i, n){
REP(j, 5){
if(str[i]==s[j]) ans[j]++;
}
}
printf("%d %d %d %d %d\n", ans[0], ans[1], ans[2], ans[3], ans[4]);
}
onkohdondo