結果
| 問題 | No.4 おもりと天秤 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-09-13 20:51:23 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 290 bytes | 
| コンパイル時間 | 1,573 ms | 
| コンパイル使用メモリ | 165,252 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-13 04:30:19 | 
| 合計ジャッジ時間 | 2,405 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 WA * 11 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    int n; cin >> n;
    int ans = 0;
    for(int i=0; i<n; i++){
        int tmp; cin >> tmp;
        ans ^= tmp;
    }
    if(ans == 0){
        cout << "possible" << endl;
    }else{
        cout << "impossible" << endl;
    }
}
            
            
            
        