結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー square1001square1001
提出日時 2021-10-29 21:20:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 745 ms
コンパイル使用メモリ 73,648 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-07 09:20:33
合計ジャッジ時間 1,678 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
	int n;
	cin >> n;
	int bit = 0;
	while (n > 0) {
		if (n % 10 == 4) bit |= 1;
		if (n % 10 == 6) bit |= 2;
		n /= 10;
	}
	cout << (bit == 3 ? "Beautiful" : "...") << endl;
	return 0;
}
0