結果

問題 No.3659 CONSTRUCTION 1,2,3
コンテスト
ユーザー sepa38
提出日時 2026-08-25 13:04:37
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 35 ms / 2,000 ms
+ 555µs
コード長 201 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 93 ms
コンパイル使用メモリ 64,512 KB
実行使用メモリ 53,828 KB
最終ジャッジ日時 2026-10-27 15:38:24
合計ジャッジ時間 2,548 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import permutations

abc = list(map(int, input().split()))

for x, y in permutations(abc, 2):
	if x % 2 == 0 and y % 3 == 0 or x % 6 == 0 and y >= 5:
		print("Yes")
		exit()

print("No")
0