結果
| 問題 | No.495 (^^*) Easy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-17 23:40:26 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 719µs | |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 454 ms |
| コンパイル使用メモリ | 78,208 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-11-10 14:11:47 |
| 合計ジャッジ時間 | 1,979 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
#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;
}