結果
問題 |
No.8020 サンシャイン◯崎
|
ユーザー |
![]() |
提出日時 | 2017-03-26 15:31:14 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 493 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 24,832 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 13:45:10 |
合計ジャッジ時間 | 954 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 20 |
ソースコード
#include <cstdio> #include <cwchar> #include <clocale> #define REP(i,n) for (int i=0;i<(n);i++) int main(){ setlocale(LC_CTYPE, ""); wchar_t S[100010]={}; int i=0; wscanf(L"%s",S); int a[5]={}; while(S[i]!=0){ if(S[i]==L'イ'){ a[0]++; }else if(S[i]==L'エ'){ a[1]++; }else if(S[i]==L'ェ'){ a[2]++; }else if(S[i]==L'~'){ a[3]++; }else if(S[i]==L'!'){ a[4]++; } i++; } REP(j,5){printf("%d",a[j]);if(j<4){printf(" ");}else{printf("\n");}} return 0; }