結果
| 問題 | No.2450 99-like Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-03 17:20:19 |
| 言語 | Rust (1.92.0 + proconio + num) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 12,294 ms |
| コンパイル使用メモリ | 403,660 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-26 12:07:29 |
| 合計ジャッジ時間 | 11,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()
}