結果
| 問題 |
No.1721 [Cherry 3rd Tune N] 麗しきNumber
|
| コンテスト | |
| ユーザー |
Digwee_kkkn
|
| 提出日時 | 2021-12-17 01:42:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 669 bytes |
| コンパイル時間 | 1,556 ms |
| コンパイル使用メモリ | 166,756 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-14 01:55:04 |
| 合計ジャッジ時間 | 2,630 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
const int INF=100000000;
#define rep(i,n) for(int i=0;i<(n);++i)
#define YESNO(flag) if(flag){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}
#define yesno(flag) if(flag){cout<<"yes"<<endl;}else{cout<<"no"<<endl;}
#define YesNo(flag) if(flag){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
int main(){
string n; cin>>n;
int j=n.size();
bool flag4=false;
bool flag6=false;
for(int i=0;i<j;++i){
if(n[i]=='4'){
flag4=true;
}else if(n[i]=='6'){
flag6=true;
}
}
if(flag4&&flag6){
cout<<"Beautiful";
}else{
cout<<"...";
}
}
Digwee_kkkn