結果
| 問題 | No.1721 [Cherry 3rd Tune N] 麗しきNumber |
| コンテスト | |
| ユーザー |
moshi777
|
| 提出日時 | 2021-10-29 21:31:02 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 3,416 ms |
| コンパイル使用メモリ | 245,464 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-24 01:48:28 |
| 合計ジャッジ時間 | 4,462 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int, int>;
int main() {
string n;
cin >> n;
bool has4 = false, has6 = false;
for (char c : n) {
if (c == '4')
has4 = true;
else if (c == '6')
has6 = true;
}
if (has4 && has6)
cout << "Beautiful" << endl;
else
cout << "..." << endl;
return 0;
}
moshi777