結果

問題 No.1992 Tendon Walk
ユーザー An_On
提出日時 2025-03-13 01:53:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-03-13 01:53:22
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

def Main():
    x=int(input())
    now=0
    g=0

    a=[2,2,-1,-1,2,-1,-1]
    ans=0
    while True:
        k=now%7
        g+=a[k]
        ans+=abs(a[k])
        if g==x:
            print(ans)
            return
        now+=1



Main()
0