結果
問題 |
No.495 (^^*) Easy
|
ユーザー |
|
提出日時 | 2018-02-18 16:55:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 411 ms |
コンパイル使用メモリ | 58,168 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-06-30 04:29:17 |
合計ジャッジ時間 | 774 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <algorithm> #include <string> #include <cstdio> using namespace std; int main() { string s; cin >> s; int l = 0, r = 0; for (int i = 0; i < s.size() - 1; i += 5) { (s[i + 1] == '*' ? r : l) ++; } cout << l << " " << r << endl; return 0; }