結果
問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
ユーザー |
|
提出日時 | 2021-11-01 13:26:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 613 ms |
コンパイル使用メモリ | 66,768 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 01:34:40 |
合計ジャッジ時間 | 1,500 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <iostream> #include <algorithm> #include <string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; bool f0 = false, f1 = false; for (int i = 0; i < s.length(); i++) { if (s[i] == '4') f0 = true; if (s[i] == '6') f1 = true; } if (f0 && f1) cout << "Beautiful\n"; else cout << "...\n"; return 0; }