結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 17:19:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 369 bytes |
| コンパイル時間 | 440 ms |
| コンパイル使用メモリ | 56,084 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 04:44:05 |
| 合計ジャッジ時間 | 806 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string stdin;
cin >> stdin;
int left = 0, right = 0;
for (int i = 0; i <= (int)stdin.length(); i += 5) {
if (stdin.substr(i,5) == "(^^*)") {
left++;
} else if (stdin.substr(i,5) == "(*^^)"){
right++;
}
}
cout << left << " " << right << endl;
return 0;
}