結果

問題 No.882 約数倍数
ユーザー dn6049949dn6049949
提出日時 2019-09-13 21:21:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 500 ms
コード長 995 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 73,252 KB
最終ジャッジ日時 2023-09-17 06:52:37
合計ジャッジ時間 2,820 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
72,860 KB
testcase_01 AC 112 ms
73,252 KB
testcase_02 AC 113 ms
72,952 KB
testcase_03 AC 112 ms
72,780 KB
testcase_04 AC 113 ms
73,032 KB
testcase_05 AC 114 ms
73,024 KB
testcase_06 AC 113 ms
72,868 KB
testcase_07 AC 111 ms
72,876 KB
testcase_08 AC 111 ms
72,892 KB
testcase_09 AC 114 ms
73,244 KB
testcase_10 AC 114 ms
73,036 KB
testcase_11 AC 112 ms
72,640 KB
testcase_12 AC 114 ms
72,880 KB
testcase_13 AC 115 ms
73,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for x in sys.stdin.readline().split()]
def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res
def IR(n):
    return [I() for i in range(n)]
def LIR(n):
    return [LI() for i in range(n)]
def SR(n):
    return [S() for i in range(n)]
def LSR(n):
    return [LS() for i in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

#A
def A():
    a,b = LI()
    for i in range(1,101):
        if a%i == 0 and i%b == 0:
            print("YES")
            return
    print("NO")
    return

#B
def B():

    return

#C
def C():

    return

#D
def D():

    return

#E
def E():

    return

#F
def F():

    return

#Solve
if __name__ == "__main__":
    A()
0