結果

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

ソースコード

diff #
raw source code

import sys
sys.setrecursionlimit(2000)
input = sys.stdin.readline
#無限大
#INF = (1 << 61) - 1
#4つのマスチェック用
four_step = [(0, 1), (1, 0), (-1, 0), (0, -1)]
def chmmin(a, b):
    if a > b:
        a = b
        return True
    else:
        return False
def chmax(a, b):
    if a < b:
        a = b
        return True
    else:
        return False
data = list(map(int, input().split()))
check_num = [1, 2, 3]
array_use = [[False for _ in range(3)] for _ in range(3)]
ans = False
def check2(num, _array):
    global ans
    for i in range(3):
        if i == num:
            continue
        else:
            if _array[i][2]:
                ans = True
                return
for i in range(3):
    for j in range(3):
        if data[j] % check_num[i] == 0:
            array_use[j][i] = True
array_check = []
for j in range(0, 3):
    if array_use[j][1]:
        check2(j, array_use)
if ans:
    print("Yes")
else:
    print("No")
0