結果
問題 | No.1186 長方形の敷き詰め |
ユーザー | buey_t |
提出日時 | 2023-05-07 09:50:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 974 bytes |
コンパイル時間 | 514 ms |
コンパイル使用メモリ | 87,144 KB |
実行使用メモリ | 83,616 KB |
最終ジャッジ日時 | 2023-08-16 01:47:46 |
合計ジャッジ時間 | 8,945 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 229 ms
82,640 KB |
testcase_01 | AC | 227 ms
82,504 KB |
testcase_02 | AC | 226 ms
82,772 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 233 ms
82,488 KB |
testcase_06 | AC | 231 ms
82,724 KB |
testcase_07 | AC | 231 ms
82,444 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 230 ms
82,772 KB |
testcase_12 | AC | 236 ms
82,684 KB |
testcase_13 | AC | 227 ms
82,472 KB |
testcase_14 | AC | 233 ms
82,560 KB |
testcase_15 | AC | 234 ms
82,776 KB |
testcase_16 | AC | 228 ms
82,720 KB |
testcase_17 | AC | 225 ms
82,668 KB |
testcase_18 | AC | 228 ms
82,832 KB |
testcase_19 | AC | 233 ms
82,480 KB |
testcase_20 | AC | 228 ms
82,552 KB |
testcase_21 | AC | 227 ms
82,492 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | AC | 234 ms
82,760 KB |
testcase_25 | AC | 233 ms
82,760 KB |
testcase_26 | AC | 231 ms
82,728 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で何回割れるか的な ''' N,M = map(int, input().split()) now = N ans = 0 while now <= M: ans += 1 + (M-now) now += N print(ans+1)