結果

問題 No.3259 C++ → Rust → Python
ユーザー fumin
提出日時 2025-09-07 00:40:54
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 428 bytes
コンパイル時間 12,321 ms
コンパイル使用メモリ 399,776 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-07 00:41:14
合計ジャッジ時間 13,253 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: type `us` should have an upper camel case name
 --> src/main.rs:9:6
  |
9 | type us = usize;
  |      ^^ help: convert the identifier to upper camel case (notice the capitalization): `Us`
  |
  = note: `#[warn(non_camel_case_types)]` on by default

ソースコード

diff #

#![allow(unused_imports)]
use std::{*, collections::*, ops::*, cmp::*, iter::*};
use proconio::{input, fastout};

fn main() {
    solve();
}

type us = usize;

// CONTEST(abcXXX-a)
#[fastout]
fn solve() {
    input! {l:us, r:us}
    let l = if l <= 295 { 0 } else if l <= 416 { 1 } else { 2 };
    let r = if r <= 295 { 0 } else if r <= 416 { 1 } else { 2 };
    println!("{}", r-l);
}

// #CAP(fumin::modint)
pub mod fumin {
}
0