結果
問題 |
No.1672 404 Not Found
|
ユーザー |
|
提出日時 | 2024-05-03 09:57:28 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 12,866 ms |
コンパイル使用メモリ | 400,428 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 09:02:10 |
合計ジャッジ時間 | 13,982 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
fn getline() -> String { let mut _ret = String::new(); std::io::stdin().read_line(&mut _ret).ok(); return _ret.trim().to_string(); } fn main() { let binding = getline(); let s = binding.as_str(); let check_digit = s.chars().nth(0).unwrap(); if check_digit == '4' || check_digit == '5' { println!("Yes"); } else { println!("No"); } }