結果
| 問題 |
No.2450 99-like Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-03 17:14:44 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| コンパイル時間 | 12,745 ms |
| コンパイル使用メモリ | 379,564 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 22:49:56 |
| 合計ジャッジ時間 | 13,801 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 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!("{}", &s);
println!("{}", solve(s));
}
fn get_line() -> String {
let mut buf = String::new();
stdin().lock().read_line(&mut buf).unwrap();
buf.trim_end().to_string()
}