結果
問題 | No.3025 |
ユーザー | mkan |
提出日時 | 2017-03-31 23:05:58 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 401 ms |
コンパイル使用メモリ | 56,848 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-04-16 18:48:28 |
合計ジャッジ時間 | 738 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s; while(cin>>s){ if(s=="SS")break; char a; cin>>a; int cnt=0; for(int i=0;i<s.size();i++)if(s[i]==a)cnt++; cout<<cnt<<endl; } return 0; }