結果

問題 No.1003 サイコロの実装 (1)
ユーザー McGregorsh
提出日時 2023-04-29 12:33:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 53,608 KB
最終ジャッジ日時 2024-11-18 09:48:47
合計ジャッジ時間 2,129 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

while N % 6 and N > 6 == 0:
	N //= 6

if N != 6:
	print('No')
else:
	print('Yes')
0