結果
問題 |
No.3115 One Power One Kill
|
ユーザー |
![]() |
提出日時 | 2025-04-18 23:08:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 1,004 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 27,528 KB |
平均クエリ数 | 2.00 |
最終ジャッジ日時 | 2025-04-18 23:08:40 |
合計ジャッジ時間 | 2,956 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
import sys # sys.setrecursionlimit(200005) # sys.set_int_max_str_digits(200005) int1 = lambda x: int(x)-1 pDB = lambda *x: print(*x, end="\n", file=sys.stderr) p2D = lambda x: print(*x, sep="\n", end="\n\n", file=sys.stderr) def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def LI1(): return list(map(int1, sys.stdin.readline().split())) def LLI1(rows_number): return [LI1() for _ in range(rows_number)] def SI(): return sys.stdin.readline().rstrip() dij = [(0, 1), (-1, 0), (0, -1), (1, 0)] # dij = [(0, 1), (-1, 0), (0, -1), (1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)] # inf = -1-(-1 << 31) inf = -1-(-1 << 62) # md = 10**9+7 # md = 998244353 ans={2: 100, 1: 1, 6: 12, 3: 45, 22: 88, 118: 100, 11: 121, 66: 0, 33: 33, 177: 45, 59: 1, 354: 12, 649: 121, 1298: 88, 1947: 33, 3894: 0, 20357: 1, 40714: 100, 61071: 45} print(100,132,flush=True) k=II() print(ans[k],flush=True) II()