結果

問題 No.69 文字を自由に並び替え
ユーザー cc
提出日時 2015-11-30 21:41:35
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 706 ms
コンパイル使用メモリ 18,556 KB
実行使用メモリ 18,976 KB
最終ジャッジ日時 2023-09-09 20:41:00
合計ジャッジ時間 1,768 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,824 KB
testcase_01 AC 15 ms
18,764 KB
testcase_02 AC 15 ms
18,732 KB
testcase_03 AC 15 ms
18,680 KB
testcase_04 WA -
testcase_05 AC 15 ms
18,584 KB
testcase_06 AC 14 ms
18,592 KB
testcase_07 AC 15 ms
18,720 KB
testcase_08 AC 14 ms
18,752 KB
testcase_09 AC 15 ms
18,588 KB
testcase_10 AC 15 ms
18,800 KB
testcase_11 AC 15 ms
18,800 KB
testcase_12 AC 15 ms
18,616 KB
testcase_13 AC 15 ms
18,616 KB
testcase_14 AC 14 ms
18,572 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%s", $a);
fscanf(STDIN, "%s", $b);

$aa = str_split($a);
$bb = str_split($b);
$diff = array_diff($aa,$bb);
if(empty($diff)){
    echo 'YES';
}else{
    echo 'NO';
}



echo "\n";

?>
0