結果
| 問題 | No.1816 MUL-DIV Game | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2022-01-23 00:03:24 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 321 bytes | 
| コンパイル時間 | 727 ms | 
| コンパイル使用メモリ | 74,704 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-28 03:37:02 | 
| 合計ジャッジ時間 | 2,336 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 8 WA * 19 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int n;cin>>n;
    vector<long long> A(n);
    for(int i = 0; n > i; i++){
        cin>>A[i];
    }
    sort(A.begin(),A.end());
    if(n%2){
        cout << A[0] << endl;;
    }else{
        cout << A[0]*A[1] << endl;
    }
}
            
            
            
        