結果
問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
ユーザー |
![]() |
提出日時 | 2022-01-15 01:00:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 656 ms |
コンパイル使用メモリ | 65,860 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-20 17:25:58 |
合計ジャッジ時間 | 1,947 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 17 |
ソースコード
#include <iostream> using namespace std; int main() { string N; cin >> N; bool f4, f6; 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; }