結果

問題 No.1903 Day1
ユーザー titan23titan23
提出日時 2022-06-24 13:16:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 241 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 82,836 KB
実行使用メモリ 59,884 KB
最終ジャッジ日時 2024-04-25 18:14:13
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,956 KB
testcase_01 AC 38 ms
53,144 KB
testcase_02 AC 41 ms
58,036 KB
testcase_03 AC 37 ms
53,148 KB
testcase_04 AC 37 ms
52,268 KB
testcase_05 AC 37 ms
52,276 KB
testcase_06 AC 37 ms
52,264 KB
testcase_07 AC 37 ms
52,464 KB
testcase_08 AC 40 ms
58,464 KB
testcase_09 AC 41 ms
59,884 KB
testcase_10 AC 40 ms
58,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

n = int(input())
unsolved = n
for i in range(1, 1000000):
  unsolved -= 1
  if i % 7 == 0:
    unsolved += 6
  if unsolved == 0:
    print(i)
    break
0