結果

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

テストケース

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

ソースコード

diff #

<?php
$array = str_split(trim(fgets(STDIN)));
$array1 = str_split(trim(fgets(STDIN)));


sort($array);
sort($array1);


$t = 0;
for($i=0;$i<count($array);$i++){
    if($array[$i] === $array1[$i]){
     $t++ ;}}
     
    if($t==count($array)){echo "YES\n";}
    else{echo "NO";}
?>
0