結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2018-08-27 00:32:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 55,804 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 04:04:40 |
合計ジャッジ時間 | 873 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; int l = 0,r = 0; for(int i = 1; i < s.length();){ if(s[i] == '*') r++; else l++; i += 5; } cout << l << ' ' << r << endl; return 0; }