結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
tancahn2380
|
| 提出日時 | 2017-04-27 05:30:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 906 ms |
| コンパイル使用メモリ | 72,336 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 14:16:33 |
| 合計ジャッジ時間 | 1,229 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<string>
int main() {
std::string s;
std::cin >> s;
int left = 0, right = 0;
for (int i = 0; i < (s.size() - 1) / 5; i++) {
if (s[i * 5 + 2-1] == '*') {
right++;
}
else {
left++;
}
}
std::cout << left << " " << right << std::endl;
}
tancahn2380