結果
| 問題 | No.2781 A%B問題 |
| コンテスト | |
| ユーザー |
northward
|
| 提出日時 | 2024-06-14 21:44:16 |
| 言語 | Rust (1.92.0 + proconio + num) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 244 bytes |
| 記録 | |
| コンパイル時間 | 13,013 ms |
| コンパイル使用メモリ | 403,956 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-14 21:44:32 |
| 合計ジャッジ時間 | 14,116 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
#![allow(non_snake_case, unused_imports)]
use proconio::{fastout, input, marker::*};
#[fastout]
fn main() {
input! {
A: isize, B: isize,
}
let mut r = A % B;
if r < 0 {
r += B;
}
println!("{}", r);
}
northward