結果
| 問題 |
No.24 数当てゲーム
|
| ユーザー |
|
| 提出日時 | 2020-02-20 21:17:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 593 bytes |
| コンパイル時間 | 618 ms |
| コンパイル使用メモリ | 64,268 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 19:13:03 |
| 合計ジャッジ時間 | 1,248 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
#define rep(i, a, n) for(int i = a; i < (n); ++i)
int main(){
int n;
cin >> n;
int a, b, c, d;
string e;
bool nums[9] = { false };
rep(i, 0, n)
{
cin >> a >> b >> c >> d >> e;
--a; --b; --c; --d;
if (e == "YES")
{
nums[a] = true;
nums[b] = true;
nums[c] = true;
nums[d] = true;
}
else
{
nums[a] = false;
nums[b] = false;
nums[c] = false;
nums[d] = false;
}
}
rep(i, 0, n)
{
if (nums[i] == true) cout << nums[i] << endl;
}
}