結果

問題 No.186 中華風 (Easy)
ユーザー 👑 yumechiyumechi
提出日時 2015-04-19 23:51:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-18 01:56:03
合計ジャッジ時間 3,376 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
7,856 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 71 ms
7,880 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 73 ms
7,892 KB
testcase_20 AC 72 ms
7,788 KB
testcase_21 AC 69 ms
7,776 KB
testcase_22 AC 72 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x1, y1 = map(int, input().split())
x2, y2 = map(int, input().split())
x3, y3 = map(int, input().split())
for i in range(1, 100001):
    j = 0
    j += 1 if i % y1 == x1 else 0
    j += 1 if i % y2 == x2 else 0
    j += 1 if i % y3 == x3 else 0
    if j == 3:
        print(i)
        break
else:
    print(-1)
0