結果
| 問題 |
No.1992 Tendon Walk
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-27 12:14:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-16 17:56:08 |
| 合計ジャッジ時間 | 1,063 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
X = int(input())
A = 2
B = -1
move = [2, 2, -1, -1, 2, -1, -1]
now_point = 0
move_total = 0
for i in range(100):
for j in move:
now_point += j
move_total += abs(j)
if now_point == X:
print(move_total)
break