結果
| 問題 |
No.44 DPなすごろく
|
| ユーザー |
NiER_Replicant6
|
| 提出日時 | 2017-12-28 04:41:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 390 bytes |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,632 KB |
| 最終ジャッジ日時 | 2024-12-21 08:26:27 |
| 合計ジャッジ時間 | 80,333 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | AC * 8 TLE * 12 |
ソースコード
A =int(input())
list1 = [0]
p = 0
while True:
list1.append(list1[0]+1)
if A in list1:
p=p+1
list1.remove(A)
list1.append(list1[0]+2)
if A in list1:
p=p+1
list1.remove(A)
x = filter((lambda y: y > A),list1)
r=(list(x))
if r:
for i in r:
list1.remove(i)
del list1[0]
if not list1:
break
print(p)
NiER_Replicant6