結果
問題 | No.1186 長方形の敷き詰め |
ユーザー | buey_t |
提出日時 | 2023-05-07 09:53:00 |
言語 | PyPy3 (7.3.13) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,007 bytes |
コンパイル時間 | 583 ms |
コンパイル使用メモリ | 87,068 KB |
実行使用メモリ | 83,688 KB |
最終ジャッジ日時 | 2023-08-16 01:55:13 |
合計ジャッジ時間 | 9,031 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 246 ms
82,728 KB |
testcase_01 | AC | 244 ms
82,472 KB |
testcase_02 | AC | 255 ms
82,792 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 243 ms
82,712 KB |
testcase_06 | AC | 253 ms
82,732 KB |
testcase_07 | AC | 248 ms
82,676 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 244 ms
82,616 KB |
testcase_12 | AC | 245 ms
82,496 KB |
testcase_13 | AC | 249 ms
82,596 KB |
testcase_14 | AC | 246 ms
82,840 KB |
testcase_15 | AC | 245 ms
82,572 KB |
testcase_16 | AC | 244 ms
82,496 KB |
testcase_17 | AC | 254 ms
82,588 KB |
testcase_18 | AC | 242 ms
82,560 KB |
testcase_19 | AC | 246 ms
82,488 KB |
testcase_20 | AC | 245 ms
82,584 KB |
testcase_21 | AC | 244 ms
82,456 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | AC | 242 ms
82,460 KB |
testcase_25 | AC | 250 ms
82,608 KB |
testcase_26 | AC | 247 ms
82,524 KB |
ソースコード
from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum from heapq import heapify, heappop, heappush from bisect import bisect_left, bisect_right from copy import deepcopy import copy import random from random import randrange from collections import deque,Counter,defaultdict from itertools import permutations,combinations from decimal import Decimal,ROUND_HALF_UP #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP) from functools import lru_cache, reduce #@lru_cache(maxsize=None) from operator import add,sub,mul,xor,and_,or_,itemgetter import sys input = sys.stdin.readline # .rstrip() INF = 10**18 mod1 = 10**9+7 mod2 = 998244353 #DecimalならPython #再帰ならPython!!!!!!!!!!!!!!!!!!!!!!!!!! ''' 縦にNってのがでかいな MをNで何回割れるか的な Mは小さかった ''' N,M = map(int, input().split()) now = N ans = 1 while now <= M: ans += 1 + (M-now) now += N ans %= mod2 print(ans)