結果
| 問題 |
No.4 おもりと天秤
|
| コンテスト | |
| ユーザー |
tachyon777
|
| 提出日時 | 2020-02-13 13:48:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 316 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 82,156 KB |
| 実行使用メモリ | 68,592 KB |
| 最終ジャッジ日時 | 2024-10-05 19:07:31 |
| 合計ジャッジ時間 | 6,893 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 1 -- * 17 |
ソースコード
n = int(input())
lst1 = list(map(int,input().split()))
def func(left,right,now):
if now == n:
return left==right
if func(left+lst1[now],right,now+1):
return True
if func(left,right+lst1[now],now+1):
return True
if func(0,0,0):
print("possible")
else:
print("impossible")
tachyon777