結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-15 20:39:36 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 446 bytes |
| コンパイル時間 | 11,246 ms |
| コンパイル使用メモリ | 401,736 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-15 04:16:59 |
| 合計ジャッジ時間 | 12,472 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
fn main() {
let n: Vec<u64> = input_line();
let mut days = 3;
for i in 23..=25 {
if n[0] <= i && i <= n[1] {
days -= 1;
}
}
println!("{}", days);
}
#[allow(unused)]
fn input_line<T: std::str::FromStr>() -> Vec<T> {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
s.trim()
.split_whitespace()
.map(|e| e.parse().ok().unwrap())
.collect()
}