結果
問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
ユーザー |
![]() |
提出日時 | 2021-10-31 17:38:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 638 bytes |
コンパイル時間 | 8,251 ms |
コンパイル使用メモリ | 412,584 KB |
最終ジャッジ日時 | 2025-01-25 09:58:52 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> #include <boost/multiprecision/cpp_int.hpp> using namespace std; using namespace atcoder; using namespace boost::multiprecision; void solve() { string N; cin >> N; bool flg1 = false, flg2 = false; for (int i = 0; i < (int)N.size(); i++) { if (N[i] == '4') { flg1 = true; } if (N[i] == '6') { flg2 = true; } } if (flg1 && flg2) { cout << "Beautiful" << endl; } else { cout << "..." << endl; } } int main() { ios::sync_with_stdio(false); cin.tie(0); solve(); return 0; }