結果
問題 | No.2870 Dice Making |
ユーザー |
|
提出日時 | 2024-09-10 00:54:37 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 92 ms / 2,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-09-10 00:54:42 |
合計ジャッジ時間 | 3,733 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
コンパイルメッセージ
Main.rb:12: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
n, k = gets.chomp.split.map{|e| e.to_i}res = []if n%k==01.upto(n/k) dores << 1end(n/k+1).upto(n) dores << 2endputs res.join(" ")elseputs -1end