結果

問題 No.3259 C++ → Rust → Python
コンテスト
ユーザー fumin
提出日時 2025-09-07 00:40:54
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 838µs
コード長 428 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 718 ms
コンパイル使用メモリ 193,976 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-14 21:54:13
合計ジャッジ時間 2,371 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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)]` (part of `#[warn(nonstandard_style)]`) on by default

ソースコード

diff #
raw source code

#![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