結果

問題 No.36 素数が嫌い!
ユーザー kei
提出日時 2016-08-20 21:28:13
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 308 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 54,136 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 21:39:20
合計ジャッジ時間 1,793 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 10 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() {
	long long N; cin >> N;
	if (N % 2 == 0) {
		N /= 2; 
		if (N % 2 == 0 || N % 3 == 0) { cout << "YES" << endl;}
	}
	else if(N%3 == 0) {
		N /= 3;
		if (N % 2 == 0 || N % 3 == 0) { cout << "YES" << endl;}
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}
0