結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-11-10 18:42:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 434 ms |
コンパイル使用メモリ | 56,816 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 12:04:45 |
合計ジャッジ時間 | 860 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream>#include <cstring>using namespace std;int main(void){int ri=0,lef=0l;char x[100001];cin>>x;int l=strlen(x);for(int i=0;i*5+3<l;i++){if(x[i*5+3]=='*')lef++;else ri++;}cout<<lef<<' '<<ri<<endl;}