結果

問題 No.1461 しあはせや歩みゆく?
ユーザー googol_S0googol_S0
提出日時 2021-04-02 23:09:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 86,736 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-08-25 13:31:00
合計ジャッジ時間 4,623 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,176 KB
testcase_01 AC 69 ms
71,164 KB
testcase_02 AC 69 ms
71,360 KB
testcase_03 AC 68 ms
71,348 KB
testcase_04 AC 69 ms
71,268 KB
testcase_05 AC 70 ms
71,036 KB
testcase_06 AC 70 ms
71,036 KB
testcase_07 AC 68 ms
70,952 KB
testcase_08 AC 69 ms
71,156 KB
testcase_09 AC 69 ms
71,072 KB
testcase_10 AC 69 ms
71,100 KB
testcase_11 AC 70 ms
71,012 KB
testcase_12 AC 68 ms
71,156 KB
testcase_13 AC 70 ms
71,048 KB
testcase_14 AC 70 ms
71,408 KB
testcase_15 AC 67 ms
71,292 KB
testcase_16 AC 69 ms
70,944 KB
testcase_17 AC 68 ms
71,120 KB
testcase_18 AC 68 ms
71,280 KB
testcase_19 AC 68 ms
71,460 KB
testcase_20 AC 69 ms
71,156 KB
testcase_21 AC 68 ms
71,124 KB
testcase_22 AC 70 ms
71,332 KB
testcase_23 AC 69 ms
71,008 KB
testcase_24 AC 70 ms
71,248 KB
testcase_25 AC 69 ms
71,020 KB
testcase_26 AC 68 ms
71,080 KB
testcase_27 AC 68 ms
70,960 KB
testcase_28 AC 69 ms
71,172 KB
testcase_29 AC 70 ms
71,104 KB
testcase_30 AC 68 ms
71,008 KB
testcase_31 AC 68 ms
71,080 KB
testcase_32 AC 71 ms
71,276 KB
testcase_33 AC 69 ms
71,464 KB
testcase_34 AC 69 ms
71,148 KB
testcase_35 AC 69 ms
71,124 KB
testcase_36 AC 70 ms
71,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
M=max(N//3-3,0)
X=M*3
Y=0
for i in range(100):
  X+=1
  if X==N:
    print(Y+i+1+M*15)
    exit()
  if i%3==2:
    X-=2
    Y+=2
0