結果
| 問題 |
No.1903 Day1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-15 22:30:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 1,000 ms |
| コード長 | 296 bytes |
| コンパイル時間 | 276 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-25 01:28:24 |
| 合計ジャッジ時間 | 1,211 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
from itertools import count
from sys import stdin
def main():
input = lambda: stdin.readline()[:-1]
N = int(input())
ans = 0
for n in count(1):
ans += 1
if not n % 7:
N += 6
N -= 1
if not N:
break
print(ans)
main()