結果
| 問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2021-11-02 21:33:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 1,535 ms |
| コンパイル使用メモリ | 166,284 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 03:35:55 |
| 合計ジャッジ時間 | 2,759 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
int f4 = 0, f6 = 0;
while( N ) {
int n = N % 10;
if( n == 4 ) f4 = 1;
if( n == 6 ) f6 = 1;
N /= 10;
}
string ans = "...";
if( f4 && f6 ) ans = "Beautiful";
cout << ans << endl;
}
forest3