結果

問題 No.3659 CONSTRUCTION 1,2,3
コンテスト
ユーザー DETERMINATION
提出日時 2026-08-30 14:43:57
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 321 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 240 ms
コンパイル使用メモリ 95,844 KB
実行使用メモリ 79,104 KB
最終ジャッジ日時 2026-08-30 14:44:00
合計ジャッジ時間 2,867 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import permutations

A, B, C = map(int, input().split())

for per in permutations([A, B, C]):
    if per[1] % 2 == 0 and per[2] % 3 == 0:
        print("Yes")
        exit(0)


for per in permutations([A, B, C]):
    if per[0] % 5 == 0 and per[1] % 6 == 0:
        print("Yes")
        exit(0)

print("No")
0