結果

問題 No.69 文字を自由に並び替え
ユーザー 綾地寧々綾地寧々
提出日時 2015-05-19 13:01:30
言語 PHP
(8.3.4)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 756 ms
コンパイル使用メモリ 18,668 KB
実行使用メモリ 18,748 KB
最終ジャッジ日時 2023-08-20 22:59:19
合計ジャッジ時間 1,665 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,632 KB
testcase_01 AC 14 ms
18,568 KB
testcase_02 AC 14 ms
18,508 KB
testcase_03 AC 14 ms
18,564 KB
testcase_04 AC 14 ms
18,584 KB
testcase_05 AC 14 ms
18,748 KB
testcase_06 AC 14 ms
18,532 KB
testcase_07 AC 14 ms
18,660 KB
testcase_08 AC 15 ms
18,588 KB
testcase_09 AC 15 ms
18,568 KB
testcase_10 AC 15 ms
18,476 KB
testcase_11 AC 14 ms
18,628 KB
testcase_12 AC 14 ms
18,508 KB
testcase_13 AC 15 ms
18,620 KB
testcase_14 AC 15 ms
18,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$str_a = trim(fgets(STDIN));
$str_b = trim(fgets(STDIN));
$count_a = count_chars($str_a, 1);
$count_b = count_chars($str_b, 1);
if ( $count_a == $count_b ) {
	echo 'YES'.PHP_EOL;
}
else {
	echo 'NO'.PHP_EOL;
}
0