提出 #40106188
ソースコード 拡げる
P,N,K,M = 998244353,*gets.split.map(&:to_i)
p M.pow(K.pow(N,P-1).then{_1<1 ? P-1 : _1},P)
提出情報
| 提出日時 | |
|---|---|
| 問題 | E - Integer Sequence Fair |
| ユーザ | ds14050 |
| 言語 | Ruby (2.7.1) |
| 得点 | 500 |
| コード長 | 92 Byte |
| 結果 | AC |
| 実行時間 | 66 ms |
| メモリ | 14316 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 500 / 500 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, 020.txt, 021.txt, 022.txt, 023.txt, 024.txt, 025.txt, 026.txt, 027.txt, 028.txt, 029.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 59 ms | 14004 KiB |
| 001.txt | AC | 58 ms | 14276 KiB |
| 002.txt | AC | 58 ms | 14288 KiB |
| 003.txt | AC | 61 ms | 14100 KiB |
| 004.txt | AC | 60 ms | 13944 KiB |
| 005.txt | AC | 61 ms | 14120 KiB |
| 006.txt | AC | 62 ms | 14132 KiB |
| 007.txt | AC | 60 ms | 14128 KiB |
| 008.txt | AC | 60 ms | 14108 KiB |
| 009.txt | AC | 60 ms | 14104 KiB |
| 010.txt | AC | 59 ms | 14040 KiB |
| 011.txt | AC | 66 ms | 14240 KiB |
| 012.txt | AC | 61 ms | 14312 KiB |
| 013.txt | AC | 62 ms | 14136 KiB |
| 014.txt | AC | 59 ms | 14316 KiB |
| 015.txt | AC | 59 ms | 14196 KiB |
| 016.txt | AC | 58 ms | 14204 KiB |
| 017.txt | AC | 63 ms | 14200 KiB |
| 018.txt | AC | 59 ms | 14108 KiB |
| 019.txt | AC | 61 ms | 14172 KiB |
| 020.txt | AC | 59 ms | 14140 KiB |
| 021.txt | AC | 57 ms | 14072 KiB |
| 022.txt | AC | 63 ms | 14184 KiB |
| 023.txt | AC | 60 ms | 14212 KiB |
| 024.txt | AC | 61 ms | 14008 KiB |
| 025.txt | AC | 57 ms | 14064 KiB |
| 026.txt | AC | 60 ms | 14108 KiB |
| 027.txt | AC | 64 ms | 14172 KiB |
| 028.txt | AC | 60 ms | 14152 KiB |
| 029.txt | AC | 56 ms | 14216 KiB |
| example0.txt | AC | 60 ms | 13948 KiB |
| example1.txt | AC | 59 ms | 14236 KiB |