結果
| 問題 | No.1992 Tendon Walk |
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2024-12-01 13:04:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 85,232 KB |
| 実行使用メモリ | 53,144 KB |
| 最終ジャッジ日時 | 2026-05-24 14:24:43 |
| 合計ジャッジ時間 | 2,239 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
import sys
input = sys.stdin.readline
x = int(input())
move = [2, 2, -1, -1, 2, -1, -1]
now = 0
ans = 0
for _ in [0] * 100:
for d in move:
now += d
ans += abs(d)
if(now == x):
exit(print(ans))
MasKoaTS