結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2019-03-11 16:30:08 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 57,968 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 15:36:13 |
合計ジャッジ時間 | 812 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int countL = 0; int countR = 0; for (int i = 0; i < s.size(); i += 5) { if (s.substr(i, 5) == "(^^*)") { countL++; } if (s.substr(i, 5) == "(*^^)") { countR++; } } cout << countL << " " << countR << endl; return 0; }