結果
問題 | No.1721 [Cherry 3rd Tune N] 麗しきNumber |
ユーザー | Sachin Kumar |
提出日時 | 2021-10-29 22:32:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 662 ms |
コンパイル使用メモリ | 64,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 12:08:40 |
合計ジャッジ時間 | 1,533 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include <iostream> using namespace std; string solve(long long n){ bool f = false,s = false; while(n){ if(f && s)return "Beautiful"; if(n%10==4)f = true; if(n%10==6)s = true; n/=10; } if(f && s)return "Beautiful"; else return "..."; } int main() { // your code goes here long long n; cin>>n; cout<<solve(n)<<endl; return 0; }