結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-06-06 16:19:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 603 ms |
コンパイル使用メモリ | 58,836 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 11:47:06 |
合計ジャッジ時間 | 1,101 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <sstream> #include <algorithm> using namespace std; int main(int argc, char *argv[]) { string s; cin >> s; int left = 0, right = 0; for (int i = 3; i < (int)s.length(); i += 5) { left += s[i] == '*'; right += s[i] != '*'; } cout << left << " " << right << endl; return 0; }