結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-17 23:40:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 64,680 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 13:45:01 |
| 合計ジャッジ時間 | 985 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int R=0,L=0;
string S,lf="(^^*)";
int main(){
ios::sync_with_stdio(false);
cin>>S;
for(int i=0;i<S.size();i+=5){
if(S[i]=='#')break;
if(S.substr(i,5)==lf)L++;
else R++;
}
cout<<L<<" "<<R<<endl;
}