結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-08-27 14:39:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 443 ms |
コンパイル使用メモリ | 54,944 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 06:42:43 |
合計ジャッジ時間 | 1,047 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <iostream> #include <string> using namespace std; int a, b; int main() { string s; cin >> s; for (size_t i = 3; i < s.length(); i += 5) { if (s[i] == '*') a++; else b++; } cout << a << " " << b << endl; }