結果
| 問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-29 22:30:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 922 ms |
| コンパイル使用メモリ | 63,872 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-07 12:05:46 |
| 合計ジャッジ時間 | 1,520 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 3 |
ソースコード
#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;
}
return "...";
}
int main() {
// your code goes here
long long n;
cin>>n;
cout<<solve(n)<<endl;
return 0;
}