結果

問題 No.69 文字を自由に並び替え
ユーザー tetsukicktetsukick
提出日時 2017-04-26 15:33:29
言語 PHP
(8.3.4)
結果
AC  
実行時間 7 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 714 ms
コンパイル使用メモリ 12,044 KB
実行使用メモリ 12,268 KB
最終ジャッジ日時 2023-08-20 23:39:11
合計ジャッジ時間 1,415 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,108 KB
testcase_01 AC 7 ms
12,140 KB
testcase_02 AC 7 ms
12,184 KB
testcase_03 AC 7 ms
12,140 KB
testcase_04 AC 7 ms
12,256 KB
testcase_05 AC 7 ms
12,140 KB
testcase_06 AC 7 ms
12,268 KB
testcase_07 AC 6 ms
12,252 KB
testcase_08 AC 7 ms
12,216 KB
testcase_09 AC 6 ms
12,264 KB
testcase_10 AC 7 ms
12,212 KB
testcase_11 AC 7 ms
12,212 KB
testcase_12 AC 6 ms
12,136 KB
testcase_13 AC 7 ms
12,212 KB
testcase_14 AC 7 ms
12,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// Here your code !
$str1 = trim(fgets(STDIN));
$str2 = trim(fgets(STDIN));

$array1 = str_split($str1);
$array2 = str_split($str2);

sort($array1);
sort($array2);

if ($array1 === $array2) {
    print("YES");
} else {
    print("NO");
}

?>
0