結果
| 問題 |
No.1992 Tendon Walk
|
| コンテスト | |
| ユーザー |
shika_126
|
| 提出日時 | 2022-07-10 14:10:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 500 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-01-03 02:14:15 |
| 合計ジャッジ時間 | 1,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 4 |
ソースコード
x = int(input())
n = 0
c = 0
#A → A → B → B → A → B → B
for i in range(100):
n += 2
c += 2
if n == x:
print(c)
break
n += 2
c += 2
if n == x:
print(c)
break
n -= 1
c += 1
if n == x:
print(c)
break
n -= 1
c += 1
if n == x:
print(c)
break
n -= 1
c += 1
if n == x:
print(c)
break
n -= 1
c += 1
if n == x:
print(c)
break
shika_126