結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-10-31 19:18:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 2,000 ms |
| コード長 | 484 bytes |
| コンパイル時間 | 526 ms |
| コンパイル使用メモリ | 66,228 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 11:11:17 |
| 合計ジャッジ時間 | 1,058 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
using namespace std;
int main(void) {
bool conte = true;
int left = 0, right = 0;
char str[6];
while (conte) {
for (int i = 0; i < 5; i++) {
cin >> str[i];
if (str[i] == '#') {
conte = false;
break;
}
}
if (conte) {
if (str[3] == '*') left++;
else if (str[1] == '*') right++;
}
}
cout << left << " " << right << endl;
return 0;
}
Kurichan0806