結果

問題 No.773 コンテスト
ユーザー phspls
提出日時 2020-01-12 00:21:22
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 12,532 ms
コンパイル使用メモリ 398,528 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-26 11:03:06
合計ジャッジ時間 13,812 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::Read;

fn solve(a: usize, b: usize) {
    let count = (a..=b).filter(|i| vec![23, 24, 25].contains(i)).count();
    println!("{}", 3 - count);
}

fn main() {
    let mut ab = String::new();
    std::io::stdin().read_to_string(&mut ab).ok();
    let ab: Vec<usize> = ab.trim().split('\n').next().unwrap().trim().split_whitespace().map(|i| i.parse::<usize>().unwrap()).collect();
    solve(ab[0], ab[1]);
}
0