結果
問題 |
No.1092 modular arithmetic
|
ユーザー |
![]() |
提出日時 | 2020-06-24 10:02:24 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 839 ms / 2,000 ms |
コード長 | 150 bytes |
コンパイル時間 | 34 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 28,672 KB |
最終ジャッジ日時 | 2024-07-03 20:03:18 |
合計ジャッジ時間 | 18,901 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 32 |
コンパイルメッセージ
Syntax OK
ソースコード
class Integer alias_method:o,:* def * a self.o(a)%P end def / a self*a.pow(P-2,P) end end P=gets.to_i p gets.split.inject{|a,b|eval"#{a}"+$<.getc+b}%P