結果
| 問題 |
No.1992 Tendon Walk
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2024-12-01 13:04:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-12-01 13:04:44 |
| 合計ジャッジ時間 | 1,466 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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