結果
| 問題 | No.1721 [Cherry 3rd Tune N] 麗しきNumber |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-01 18:25:49 |
| 言語 | Rust (1.97.1 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 794µs | |
| コード長 | 428 bytes |
| 記録 | |
| コンパイル時間 | 3,523 ms |
| コンパイル使用メモリ | 187,348 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-12 00:53:43 |
| 合計ジャッジ時間 | 5,737 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
fn read() -> String {
let mut buf = String::new();
std::io::stdin().read_line(&mut buf).unwrap();
buf.trim().to_owned()
}
fn solve(s: String) -> &'static str {
fn contain_with<const N: u8>(s: &str) -> bool {
s.contains(&N.to_string())
}
if contain_with::<4>(&s) && contain_with::<6>(&s) {
"Beautiful"
} else {
"..."
}
}
fn main() {
println!("{}", solve(read()));
}