結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
cokerich
|
| 提出日時 | 2025-03-10 13:41:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 2,476 ms |
| コンパイル使用メモリ | 201,520 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-10 13:41:56 |
| 合計ジャッジ時間 | 3,987 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#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=1;i<101;i++){if (y[0]<y[i]){cout<<"NO"<<endl;return(0);}}
cout<<"YES"<<endl;return(0);
}
cokerich