結果
| 問題 | No.69 文字を自由に並び替え |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-15 21:13:27 |
| 言語 | OCaml (5.5.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 294µs | |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-12 07:40:38 |
| 合計ジャッジ時間 | 1,476 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
Scanf.scanf "%s %s" (fun a b ->
let make_his s =
let n = String.length s in
let h = Array.make 26 0 in
for i = 0 to n - 1 do
let c = int_of_char s.[i] - 97 in
h.(c) <- h.(c) + 1
done;
h
in
print_endline @@
if make_his a = make_his b then "YES" else "NO"
)