結果
問題 |
No.693 square1001 and Permutation 2
|
ユーザー |
![]() |
提出日時 | 2019-11-11 18:12:46 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 89 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-15 05:18:06 |
合計ジャッジ時間 | 1,694 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
N,A=$<.map{|l|l.split.map(&:to_i).sort} puts A.each.with_index(1).map(&:-).map(&:abs).sum