結果
| 問題 | No.8090 Knapsack Function |
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2022-05-15 22:16:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 911 ms |
| コンパイル使用メモリ | 91,756 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 10:07:07 |
| 合計ジャッジ時間 | 2,890 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <queue>
#include <map>
#include <cmath>
#include <iomanip>
#include <set>
#include <cstdio>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
bool ok = false;
for (int i = 0; i < n; i++) {
int v, w;
cin >> v >> w;
if (w == 1) {
ok = true;
}
}
cout << (ok ? "Yes" : "No") << endl;
return 0;
}
mmn15277198