結果
| 問題 | No.1343 Dividing Digit |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-16 15:54:58 |
| 言語 | Ruby (4.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 73 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2026-05-22 00:11:49 |
| 合計ジャッジ時間 | 3,088 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 RE * 1 |
| other | RE * 22 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,k,*a=gets(nil).split.map &:to_i
m=a.sum
l=k
p a.sum{_1*k.pow(l-=1,m)}%m