結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-21 05:29:32 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 705 bytes |
| 記録 | |
| コンパイル時間 | 676 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 16,340 KB |
| 平均クエリ数 | 9.40 |
| 最終ジャッジ日時 | 2026-08-15 10:15:42 |
| 合計ジャッジ時間 | 7,207 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
#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)
sys.stdout.flush()
while True:
n = int(input())
if n >= N:
return
a += K + 1
print(a)
sys.stdout.flush()
if __name__ == '__main__':
main()