結果
問題 | No.1987 Sandglass Inconvenience |
ユーザー | siganai |
提出日時 | 2022-06-25 18:45:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 151 ms / 2,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 828 ms |
コンパイル使用メモリ | 87,124 KB |
実行使用メモリ | 78,944 KB |
最終ジャッジ日時 | 2023-08-09 11:30:19 |
合計ジャッジ時間 | 5,839 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 130 ms
78,792 KB |
testcase_01 | AC | 136 ms
78,848 KB |
testcase_02 | AC | 135 ms
78,908 KB |
testcase_03 | AC | 136 ms
78,736 KB |
testcase_04 | AC | 136 ms
78,692 KB |
testcase_05 | AC | 137 ms
78,944 KB |
testcase_06 | AC | 137 ms
78,644 KB |
testcase_07 | AC | 135 ms
78,820 KB |
testcase_08 | AC | 136 ms
78,728 KB |
testcase_09 | AC | 136 ms
78,868 KB |
testcase_10 | AC | 137 ms
78,696 KB |
testcase_11 | AC | 135 ms
78,496 KB |
testcase_12 | AC | 136 ms
78,784 KB |
testcase_13 | AC | 137 ms
78,732 KB |
testcase_14 | AC | 135 ms
78,816 KB |
testcase_15 | AC | 133 ms
78,652 KB |
testcase_16 | AC | 137 ms
78,692 KB |
testcase_17 | AC | 140 ms
78,732 KB |
testcase_18 | AC | 135 ms
78,668 KB |
testcase_19 | AC | 136 ms
78,656 KB |
testcase_20 | AC | 139 ms
78,840 KB |
testcase_21 | AC | 139 ms
78,860 KB |
testcase_22 | AC | 151 ms
78,808 KB |
testcase_23 | AC | 138 ms
78,656 KB |
testcase_24 | AC | 137 ms
78,944 KB |
ソースコード
#!/usr/bin/env PyPy3 from collections import Counter, defaultdict, deque import itertools import re import math from functools import reduce import operator import bisect from heapq import * import functools mod=998244353 import sys input=sys.stdin.readline a,b,c=map(int,input().split()) x = int(input()) gc = math.gcd(a,b) gc = math.gcd(gc,c) if x % gc == 0: print('Yes') else: print('No')