結果

問題 No.858 わり算
コンテスト
ユーザー ああ
提出日時 2026-10-14 22:19:41
言語 Rust
(1.99.0 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 89µs
コード長 289 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,575 ms
コンパイル使用メモリ 183,268 KB
実行使用メモリ 9,896 KB
最終ジャッジ日時 2026-10-14 22:19:49
合計ジャッジ時間 3,465 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused import: `std::collections::HashMap`
 --> src/main.rs:2:5
  |
2 | use std::collections::HashMap;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `std::collections::BTreeSet`
 --> src/main.rs:3:5
  |
3 | use std::collections::BTreeSet;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: `std::ops::ControlFlow::Break`
 --> src/main.rs:4:5
  |
4 | use std::ops::ControlFlow::Break;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unnecessary parentheses around `for` iterator expression
  --> src/main.rs:11:14
   |
11 |     for i in (0..50){
   |              ^     ^
   |
   = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
help: remove these parentheses
   |
11 -     for i in (0..50){
11 +     for i in 0..50 {
   |

warning: unused variable: `i`
  --> src/main.rs:11:9
   |
11 |     for i in (0..50){
   |         ^ help: if this is intentional, prefix it with an underscore: `_i`
   |
   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

ソースコード

diff #
raw source code

use proconio::input;
use std::collections::HashMap;
use std::collections::BTreeSet;
use std::ops::ControlFlow::Break;
fn main(){
    input!{
        mut a:usize,b:usize,
    }
    print!("{}{}",a/b,'.');
    a%=b;
    for i in (0..50){
        a*=10;
        print!("{}",a/b);a%=b;
    }
}
0