結果
| 問題 | No.495 (^^*) Easy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-12 19:18:56 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 18 ms / 2,000 ms |
| + 418µs | |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 1,243 ms |
| コンパイル使用メモリ | 179,076 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-11-10 14:39:53 |
| 合計ジャッジ時間 | 2,501 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
int r=0, l=0;
while(S.front() != '#'){
if(S.substr(0, 5)=="(*^^)") r++;
else l++;
S.erase(0,5);
}
cout << l << ' ' << r << endl;
return 0;
}