結果
問題 | No.1373 Directed Operations |
ユーザー |
![]() |
提出日時 | 2021-02-06 15:08:51 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 713 ms / 2,000 ms |
コード長 | 187 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 30,464 KB |
最終ジャッジ日時 | 2024-07-02 23:46:04 |
合計ジャッジ時間 | 9,800 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
コンパイルメッセージ
Syntax OK
ソースコード
ans = [0] * ~-gets.to_igets.split.map(&:to_i).each_with_index.to_a.sort.each_with_index do |(a, j), i|puts('NO') + exit if i + 1 < aans[j] = i + 2 - aendputs 'YES', ans.join("\n")