結果
| 問題 |
No.2450 99-like Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-03 17:20:19 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 387 bytes |
| コンパイル時間 | 12,754 ms |
| コンパイル使用メモリ | 399,924 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 22:54:37 |
| 合計ジャッジ時間 | 13,289 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#![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()
}