結果
問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
ユーザー |
![]() |
提出日時 | 2025-08-15 01:00:39 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 515 bytes |
コンパイル時間 | 771 ms |
コンパイル使用メモリ | 84,720 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-15 01:00:50 |
合計ジャッジ時間 | 2,014 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
# include <iostream> # include <iomanip> using namespace std; int main() { string n; cin >> n; bool is_4 = false; bool is_6 = false; for (int i = 0; i < n.length(); i++) { if (!is_4 && n[i] == '4') { is_4 = true; } if (!is_6 && n[i] == '6') { is_6 = true; } if (is_4 && is_6) { break; } } if (is_4 && is_6) { cout << "Beautiful" << endl; }else { cout << "..." << endl; } }