結果
| 問題 | No.2450 99-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-03 17:20:19 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 816µs | |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 178,452 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 20:14:46 |
| 合計ジャッジ時間 | 1,883 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
#![allow(dead_code)]
use std::io::{stdin, BufRead};
fn solve(s: String) -> &'static str {
if s.chars().all(|c| c == '9') {
"Yes"
} else {
"No"
}
}
fn main() {
let s = get_line();
println!("{}", solve(s));
}
fn get_line() -> String {
let mut buf = String::new();
stdin().lock().read_line(&mut buf).unwrap();
buf.trim_end().to_string()
}