結果
問題 |
No.1816 MUL-DIV Game
|
ユーザー |
![]() |
提出日時 | 2022-01-21 23:09:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 1,971 ms |
コンパイル使用メモリ | 197,916 KB |
最終ジャッジ日時 | 2025-01-27 14:26:59 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | AC * 5 WA * 13 RE * 9 |
ソースコード
#include <bits/stdc++.h> int main(){ using namespace std; unsigned long N; cin >> N; if(N & 1){ abort(); if(N == 1){ unsigned long A; cin >> A; cout << A << endl; }else puts("1"); return 0; } vector<unsigned long> A(N); for(auto&& i : A)cin >> i; sort(begin(A), end(A)); cout << A[0] * A[1] << endl; return 0; }