結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-21 05:29:09 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 682 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2026-08-15 10:15:55 |
| 合計ジャッジ時間 | 7,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()