結果
問題 | No.495 (^^*) Easy |
ユーザー |
|
提出日時 | 2018-05-12 19:18:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 1,262 ms |
コンパイル使用メモリ | 158,724 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 09:41:08 |
合計ジャッジ時間 | 1,775 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#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; }