結果
問題 |
No.4 おもりと天秤
|
ユーザー |
![]() |
提出日時 | 2018-09-28 15:08:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-12 04:50:27 |
合計ジャッジ時間 | 1,503 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 6 |
ソースコード
import sys def main(): N = int(input()) li = list(map(int,input().split())) total = 0 for i in range(len(li)): total += li[i] for i in range(len(li)): if(li[i] > (total / 2)): print("impossible") sys.exit() if((total % 2) != 0): print("impossible") sys.exit() print("possible") if __name__ == '__main__': main()