結果

問題 No.356 円周上を回る3つの動点の一致
ユーザー GrayCoderGrayCoder
提出日時 2018-07-28 19:48:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 527 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 8,944 KB
最終ジャッジ日時 2023-09-20 10:07:45
合計ジャッジ時間 3,011 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,748 KB
testcase_01 AC 20 ms
8,844 KB
testcase_02 AC 20 ms
8,804 KB
testcase_03 AC 19 ms
8,832 KB
testcase_04 AC 20 ms
8,796 KB
testcase_05 AC 20 ms
8,848 KB
testcase_06 WA -
testcase_07 AC 20 ms
8,844 KB
testcase_08 AC 21 ms
8,712 KB
testcase_09 AC 20 ms
8,860 KB
testcase_10 AC 20 ms
8,832 KB
testcase_11 AC 20 ms
8,688 KB
testcase_12 AC 20 ms
8,708 KB
testcase_13 AC 20 ms
8,708 KB
testcase_14 WA -
testcase_15 AC 20 ms
8,764 KB
testcase_16 AC 21 ms
8,896 KB
testcase_17 AC 20 ms
8,936 KB
testcase_18 AC 20 ms
8,688 KB
testcase_19 WA -
testcase_20 AC 20 ms
8,692 KB
testcase_21 AC 20 ms
8,796 KB
testcase_22 WA -
testcase_23 AC 20 ms
8,696 KB
testcase_24 AC 20 ms
8,812 KB
testcase_25 AC 20 ms
8,876 KB
testcase_26 AC 20 ms
8,804 KB
testcase_27 AC 21 ms
8,740 KB
testcase_28 AC 20 ms
8,844 KB
testcase_29 AC 20 ms
8,888 KB
testcase_30 AC 21 ms
8,912 KB
testcase_31 AC 20 ms
8,896 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 20 ms
8,836 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 20 ms
8,756 KB
testcase_39 AC 20 ms
8,752 KB
testcase_40 AC 20 ms
8,932 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 20 ms
8,748 KB
testcase_48 AC 20 ms
8,752 KB
testcase_49 WA -
testcase_50 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
from functools import reduce
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write

def main():
    T = list(map(int, stdin.read().splitlines()))

    lcm = lambda x, y: x * y // gcd(x, y)
    lcm_ = reduce(lcm, T)

    loop = []
    for i in T:
        loop.append(lcm_ // i)

    den = 1
    for i in range(1, 11):
        mod = []
        for j in loop:
            mod.append(j % i)
        if mod[0] == mod[1] == mod[2]:
            den = i
    ans = str(lcm_) + '/' + str(den) + '\n'
    write(ans)

main()
0