結果

問題 No.1992 Tendon Walk
ユーザー LignanLignan
提出日時 2022-07-02 17:25:56
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 670 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-08-18 08:40:49
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,784 KB
testcase_01 AC 16 ms
7,892 KB
testcase_02 AC 17 ms
7,876 KB
testcase_03 AC 16 ms
7,872 KB
testcase_04 AC 16 ms
7,812 KB
testcase_05 AC 16 ms
7,872 KB
testcase_06 AC 16 ms
7,956 KB
testcase_07 AC 16 ms
7,900 KB
testcase_08 AC 16 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

X=int(input())

now=0
d=0

for i in range(100):
    now+=2
    d+=2
    if now==X:
        break
    now+=2
    d+=2
    if now==X:
        break
    now-=1
    d+=1
    if now==X:
        break
    now-=1
    d+=1
    now+=2
    d+=2
    now-=1
    d+=1
    now-=1
    d+=1
print(d)



    
    
    
    
0