結果
| 問題 | No.8093 Please GCD |
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2022-04-01 22:04:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,068 bytes |
| 記録 | |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 81,636 KB |
| 実行使用メモリ | 106,804 KB |
| 平均クエリ数 | 505.00 |
| 最終ジャッジ日時 | 2024-11-20 09:24:04 |
| 合計ジャッジ時間 | 9,927 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 6 |
ソースコード
import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0]; dy = [0, 1, 0, -1]
"""
Main Code
"""
n = getN()
lis = [True] * (n + 1)
prime = []
for i in range(2, n + 1):
if not(lis[i]):
continue
prime.append(i)
for j in range(i * 2, n + 1, i):
lis[j] = False
cnt = 0
x = 1
for i in prime:
if(cnt == 600):
break
y = 1
while(y * i <= n):
y *= i
print("? " + str(y), flush = True)
s = getN()
x *= s
cnt += 1
print("! " + str(x), flush = True)
MasKoaTS