結果
問題 | No.3002 多項式の割り算 〜easy〜 |
ユーザー |
|
提出日時 | 2025-01-17 21:36:13 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 845 bytes |
コンパイル時間 | 18,168 ms |
コンパイル使用メモリ | 380,460 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-17 21:36:35 |
合計ジャッジ時間 | 15,850 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
#[allow(unused_imports)]use std::{collections::*,cmp::*,mem::swap,time::Instant,io::{self, stdin, Read, read_to_string},hash::Hash,};#[allow(unused_imports)]use proconio::{input, input_interactive, marker::{*}};#[allow(unused_imports)]//use rand::{thread_rng, Rng, seq::SliceRandom};#[allow(unused_imports)]//use ac_library::{*};#[allow(dead_code)]const INF: i64 = 1<<60;#[allow(dead_code)]const MOD: i64 = 998244353;#[allow(dead_code)]const D: [(usize, usize); 4] = [(1, 0), (0, 1), (!0, 0), (0, !0)];//use proconio::fastout;//#[fastout]fn main(){input!{a: i64, b: i64,}match b%3{0 => {println!("0 {}", a);},1 => {println!("{} 0", a);},_ => {println!("{} {}", -a, -a);}}}