結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-29 00:58:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 279 bytes |
| コンパイル時間 | 587 ms |
| コンパイル使用メモリ | 56,156 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 13:33:23 |
| 合計ジャッジ時間 | 938 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::string s;
std::cin >> s;
int count = 0;
for (int i = 0; i < (s.length() - 1) / 5; i++) {
if (s[i*5+1] == '*') {
count++;
}
}
std::cout << (s.length() - 1) / 5 - count << ' ' << count << std::endl;
return 0;
}