結果
問題 |
No.4 おもりと天秤
|
ユーザー |
![]() |
提出日時 | 2019-02-24 09:04:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 1,508 ms |
コンパイル使用メモリ | 169,200 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-17 19:59:23 |
合計ジャッジ時間 | 2,312 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); int n, total = 0; cin >> n; vector<int> W(n); for(int i = 0; i < n; i++){ cin >> W[i]; total += W[i]; } if(total % 2){ cout << "impossible" << endl; }else{ cout << "possible" << endl; } return 0; }