結果
問題 | No.1184 Hà Nội |
ユーザー |
![]() |
提出日時 | 2020-08-22 14:30:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 721 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-15 08:46:45 |
合計ジャッジ時間 | 1,954 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
import sys import math sys.setrecursionlimit(10 ** 7) def input() : return sys.stdin.readline().strip() def INT() : return int(input()) def MAP() : return map(int,input().split()) def LIST() : return list(MAP()) def NIJIGEN(H): return [list(input()) for i in range(H)] N,M=map(int,input().split()) if N%M==0: a=N//M else: a=(N//M)+1 n=pow(2,a,998244353)-1 if n==-1: print(n+998244353) else: print(n)