結果
問題 |
No.8090 Knapsack Function
|
ユーザー |
|
提出日時 | 2022-04-01 21:49:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 1,994 ms |
コンパイル使用メモリ | 193,408 KB |
最終ジャッジ日時 | 2025-01-28 13:56:02 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ll n; cin>>n; bool ans=0; for(int i=0;i<n;i++){ ll a,b; cin>>a>>b; if(a==1)ans=1; } if(ans) cout<<"Yes"<<endl; else cout<<"No"<<endl; }