結果
| 問題 | No.1721 [Cherry 3rd Tune N] 麗しきNumber |
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2021-10-30 15:37:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 506 bytes |
| 記録 | |
| コンパイル時間 | 441 ms |
| コンパイル使用メモリ | 41,028 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-07 13:43:38 |
| 合計ジャッジ時間 | 1,356 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 1721.cc: No.1721 [Cherry 3rd Tune N] 麗しきNumber - yukicoder
*/
#include<cstdio>
#include<algorithm>
using namespace std;
/* constant */
/* typedef */
/* global variables */
/* subroutines */
/* main */
int main() {
int n;
scanf("%d", &n);
bool f4 = false, f6 = false;
while (n > 0) {
int d = n % 10;
if (d == 4) f4 = true;
else if (d == 6) f6 = true;
n /= 10;
}
if (f4 && f6) puts("Beautiful");
else puts("...");
return 0;
}
tnakao0123