結果

問題 No.216 FAC
ユーザー cokerich
提出日時 2025-03-10 13:36:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 201,460 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-10 13:36:28
合計ジャッジ時間 3,347 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int z,a;
  cin >> z;
map <int,int> x;
map <int,int> y;
for(int i=0;i<2*z;i++){if(i<z)cin>>x[i];if(i>=z){cin>>a;y[a]=y[a]+x[i-z];}}
for(int i=0;i<100;i++){if (y[0]<y[i]){cout<<"No"<<endl;return(0);}}
cout<<"Yes"<<endl;return(0);
}
0