結果
問題 | No.3002 多項式の割り算 〜easy〜 |
ユーザー |
![]() |
提出日時 | 2025-01-17 21:37:51 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 22,089 ms |
コンパイル使用メモリ | 240,344 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-17 21:38:17 |
合計ジャッジ時間 | 14,684 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 22 |
ソースコード
package mainimport . "fmt"import . "math/big"func main() {var a,b int64Scan(&a,&b)n:=new(Int).Mul(NewInt(a),new(Int).Exp(NewInt(10),NewInt(b),nil))m:=n.Mod(n,NewInt(111)).Int64()if m>99 {m=111-mPrintln(m/10,m%10)} else {Println(m/10,m%10)}}