結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-27 03:51:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 548 bytes |
| 記録 | |
| コンパイル時間 | 496 ms |
| コンパイル使用メモリ | 58,748 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 10:34:09 |
| 合計ジャッジ時間 | 1,367 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 8 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int N;
int pK = 0;
int pO = 0;
int cnt = 0;
cin >> N;
vector<int> point(N);
vector<int> man(N);
while (cnt < 2) {
for (int i = 0; i < N; i++) {
int n;
cin >> n;
if (cnt == 0) {
point[i] = n;
} else {
if (n == 0)
pK += point[i];
else
pO += point[i];
}
}
cnt++;
}
cout << ((pK >= pO) ? "YES" : "NO") << endl;
}