結果
| 問題 | No.1816 MUL-DIV Game | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2022-01-23 00:01:46 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 315 bytes | 
| コンパイル時間 | 700 ms | 
| コンパイル使用メモリ | 74,240 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-28 03:35:33 | 
| 合計ジャッジ時間 | 2,041 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 WA * 22 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int n;cin>>n;
    vector<int> 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;
    }
}
            
            
            
        