結果

問題 No.69 文字を自由に並び替え
ユーザー mondomondo
提出日時 2019-07-25 21:46:28
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 12,088 KB
実行使用メモリ 12,344 KB
最終ジャッジ日時 2023-09-15 00:06:42
合計ジャッジ時間 906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 8 ms
12,260 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 7 ms
12,292 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 7 ms
12,320 KB
testcase_10 AC 7 ms
12,316 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 7 ms
12,248 KB
testcase_14 AC 7 ms
12,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
while($line = fgets(STDIN)){
    $array[] = trim($line);
}
$a = str_split($array[0]);
$b = str_split($array[1]);
asort($a);
asort($b);
$A = implode("",$a);
$B = implode("",$b);
if (strnatcmp($A, $B) !== 0) {
    echo "NO";
} else {
    echo "OK";
}
0