結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-09-05 21:57:07 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 434 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2024-12-14 06:04:56 |
| 合計ジャッジ時間 | 1,147 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
(define (System.out.println x)
(begin
(display x)
(newline)
)
)
(let (
(A (sort (string->list (symbol->string (read))) (lambda (x y) (< (char->integer x) (char->integer y)))))
(B (sort (string->list (symbol->string (read))) (lambda (x y) (< (char->integer x) (char->integer y)))))
)
(if (string=? (list->string A) (list->string B))
(System.out.println "YES")
(System.out.println "NO")
)
)
Rin