結果
問題 | No.1992 Tendon Walk |
ユーザー | ikoma |
提出日時 | 2022-07-01 21:59:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-26 04:59:45 |
合計ジャッジ時間 | 1,024 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
X=int(input()) x=0 ans=0 while True: for d in [2,2,-1,-1,2,-1,-1]: x+=d ans+=abs(d) if x==X: print(ans) exit()