結果
問題 | No.1048 Zero (Advanced) |
ユーザー | Mille0x1C |
提出日時 | 2020-05-08 22:37:27 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 156 ms / 2,000 ms |
コード長 | 2,017 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 82,288 KB |
実行使用メモリ | 91,084 KB |
最終ジャッジ日時 | 2024-07-04 01:00:29 |
合計ジャッジ時間 | 3,844 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 156 ms
90,988 KB |
testcase_01 | AC | 153 ms
90,900 KB |
testcase_02 | AC | 148 ms
90,816 KB |
testcase_03 | AC | 147 ms
90,896 KB |
testcase_04 | AC | 152 ms
90,880 KB |
testcase_05 | AC | 149 ms
90,788 KB |
testcase_06 | AC | 149 ms
91,012 KB |
testcase_07 | AC | 154 ms
90,800 KB |
testcase_08 | AC | 153 ms
90,888 KB |
testcase_09 | AC | 150 ms
90,780 KB |
testcase_10 | AC | 152 ms
90,720 KB |
testcase_11 | AC | 153 ms
90,804 KB |
testcase_12 | AC | 149 ms
90,844 KB |
testcase_13 | AC | 149 ms
90,868 KB |
testcase_14 | AC | 153 ms
90,700 KB |
testcase_15 | AC | 150 ms
90,848 KB |
testcase_16 | AC | 154 ms
90,896 KB |
testcase_17 | AC | 150 ms
91,084 KB |
testcase_18 | AC | 147 ms
90,872 KB |
ソースコード
from __future__ import print_function import sys sys.setrecursionlimit(500000) import re import array import copy import functools import operator import math import string import fractions from fractions import Fraction import collections import itertools import bisect import random import time import heapq from heapq import heappush from heapq import heappop from heapq import heappushpop from heapq import heapify from heapq import heapreplace from queue import PriorityQueue as pq from queue import Queue from itertools import accumulate from collections import deque from collections import Counter from operator import mul from functools import reduce input = sys.stdin.readline def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) return # from fractions import gcd # from math import gcd # def lcm(n, m): # return int(n * m / gcd(n, m)) # def coprimize(p, q): # common = gcd(p, q) # return (p // common, q // common) # def find_gcd(list_l): # x = reduce(gcd, list_l) # return x def combinations_count(n, r): r = min(r, n - r) numer = reduce(mul, range(n, n - r, -1), 1) denom = reduce(mul, range(1, r + 1), 1) return numer // denom def main(): # l,r,m,k = map(int,input().strip().split()) # if l==r and l*k%m == 0: print("Yes") return elif l==r and l*k%m != 0: print("No") return # eprint('l*k, r*k ',end=':\n') eprint(l*k, r*k) # l1 = (l-1)*k // m r1 = r*k // m # if l*k%m ==0 or r*k%m == 0: print("Yes") return # if r1 - l1>0: print("Yes") else: print("No") return # eprint('l, l+m,r ',end=':\n') # eprint(l, l+m,r) # if l1+m<=r1 or l1+m-l<=r1: # print("Yes") # else: # print("No") # l2=l1%m # r2=r1%m # if l2: # pass # if 0<l<r<m: # print("No") # else: # print("Yes") if __name__ == '__main__': main()