結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
|
提出日時 | 2025-01-25 12:32:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 74 ms / 2,000 ms |
コード長 | 1,030 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 71,296 KB |
平均クエリ数 | 12.45 |
最終ジャッジ日時 | 2025-01-25 22:03:14 |
合計ジャッジ時間 | 5,470 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 |
ソースコード
import sys sys.setrecursionlimit(10 ** 6) # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') from collections import defaultdict as dd S = input R = range P = print def I(): return int(S()) def M(): return map(int, S().split()) def L(): return list(M()) def O(): return list(map(int, open(0).read().split())) def yn(b): print("Yes" if b else "No") biga = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" smaa = "abcdefghijklmnopqrstuvwxyz" ctoi = lambda c: ord(c) - ord('a') ctoi2 = lambda c: ord(c) - ord('A') itoc = lambda i: chr(ord('a') + i) itoc2 = lambda i: chr(ord('A') + i) inf = 10 ** 18 mod = 998244353 dxy4 = [(-1, 0), (0, -1), (1, 0), (0, 1)] dxy8 = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)] def acc(a): b = [0] for i in a: b.append(b[-1] + i) return b def gin(N, M): g = [[] for _ in range(N)] for _ in range(M): u, v = map(int, input().split()) u -= 1 v -= 1 g[u].append(v) g[v].append(u) return g x=10**9 while x>0: P(x,flush=True) if input()=='0': x//=2 else: exit()