結果

問題 No.216 FAC
ユーザー cokerich
提出日時 2025-03-10 13:35:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 2,086 ms
コンパイル使用メモリ 202,144 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-10 13:35:27
合計ジャッジ時間 3,217 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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<99;i++){if (y[0]<y[i]){cout<<"No"<<endl;return(0);}}
cout<<"Yes"<<endl;return(0);
}
0