結果
問題 |
No.8090 Knapsack Function
|
ユーザー |
![]() |
提出日時 | 2022-04-01 21:42:41 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 1,849 ms |
コンパイル使用メモリ | 196,108 KB |
最終ジャッジ日時 | 2025-01-28 13:52:57 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; vector<int> v(n), w(n); for (int i = 0; i < n; i++) cin >> v[i] >> w[i]; if (count(v.begin(), v.end(), 1)) cout << "Yes" << endl; else cout << "No" << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); /*int t; cin >> t; while (t--)*/ solve(); }