結果

問題 No.1992 Tendon Walk
ユーザー Lignan
提出日時 2022-07-02 17:25:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-27 12:31:35
合計ジャッジ時間 890 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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