結果
問題 | No.910 素数部分列 |
ユーザー |
![]() |
提出日時 | 2019-10-18 21:32:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 2,320 ms |
コンパイル使用メモリ | 194,196 KB |
最終ジャッジ日時 | 2025-01-07 22:41:47 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 50 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(0);int n;cin >> n;vector<int> xs(n), ys(n);for (int i = 0; i < n; i++) cin >> xs[i];for (int i = 0; i < n; i++) cin >> ys[i];int nin = 1e9;for (int i = 0; i < n; i++) {nin = min(nin, xs[i] + ys[i]);}cout << nin << endl;cout << 0 << endl;for (int i = 0; i < n; i++) {cout << min(nin, xs[i]) << '\n';}cout << nin << endl;}