結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
|
提出日時 | 2021-01-21 05:29:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 682 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 46,712 KB |
最終ジャッジ日時 | 2024-07-17 10:26:48 |
合計ジャッジ時間 | 6,805 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
#region Header #!/usr/bin/env python3 # from typing import * import sys import io import math import collections import decimal import itertools from queue import PriorityQueue import bisect import heapq def input(): return sys.stdin.readline()[:-1] sys.setrecursionlimit(1000000) #endregion # _INPUT = """# paste here... # """ # sys.stdin = io.StringIO(_INPUT) def main(): N, K = map(int, input().split()) if (N-1) % (K+1) == 0: a = 1 else: a = 0 print(a) while True: n = int(input()) if n >= N: return a += K + 1 print(a) sys.stdout.flush() if __name__ == '__main__': main()