結果
| 問題 | No.571 3人兄弟(その2) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-20 15:08:04 | 
| 言語 | Scheme (Gauche-0.9.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 2,000 ms | 
| コード長 | 565 bytes | 
| コンパイル時間 | 65 ms | 
| コンパイル使用メモリ | 6,944 KB | 
| 実行使用メモリ | 16,128 KB | 
| 最終ジャッジ日時 | 2024-12-16 07:02:06 | 
| 合計ジャッジ時間 | 1,663 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
(define (main args)
  (let* ([ha (read)]
         [wa (read)]
         [hb (read)]
         [wb (read)]
         [hc (read)]
         [wc (read)]
         [sa (cons 'A (cons ha wa))]
         [sb (cons 'B (cons hb wb))]
         [sc (cons 'C (cons hc wc))]
         [sl (list sa sb sc)])
    (for-each print
              (map car (sort sl
                             (lambda (x y)
                               (if (= (cadr x) (cadr y))
                                   (< (cddr x) (cddr y))
                                   (> (cadr x) (cadr y))))))))
  0)
            
            
            
        