結果
問題 |
No.46 はじめのn歩
|
ユーザー |
|
提出日時 | 2025-01-16 01:49:06 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 356 ms / 5,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 12,013 ms |
コンパイル使用メモリ | 400,796 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-16 01:49:27 |
合計ジャッジ時間 | 13,741 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
warning: unnecessary parentheses around `while` condition --> src/main.rs:16:11 | 16 | while (b > count) { | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 16 - while (b > count) { 16 + while b > count { |
ソースコード
#![allow(unused_imports)] use proconio::input; use proconio::marker::*; use std::cmp::*; use std::collections::*; fn main() { input! { a: usize, b: usize, } let mut count = 0; let mut ans = 0; while (b > count) { count += a; ans += 1; } println!("{}", ans); }