結果
問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
ユーザー |
![]() |
提出日時 | 2022-01-15 01:18:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 66,540 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-20 17:54:55 |
合計ジャッジ時間 | 1,562 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <iostream> using namespace std; int main() { string N; cin >> N; bool f4{false}, f6{false}; for (int i = 0; i < N.length(); i++) { if(N.substr(i, 1) == "4") f4 = true; if(N.substr(i, 1) == "6") f6 = true; } if (f4 && f6) cout << "Beautiful" << endl; else cout << "..." << endl; return 0; }