Submission #46598265
Source Code Expand
<?php fscanf(STDIN, '%d', $N); $S = str_split(trim(fgets(STDIN))); $T = str_split(trim(fgets(STDIN))); $S = array_combine($S, $T); $flag = true; foreach ($S as $k => $v) { if (($k == $v) || ($k == '1' && $v == 'l' || $k == 'l' && $v == '1') || ($k == 'o' && $v == '0' || $k == '0' && $v == 'o')) { continue; } else { $flag = false; break; } } echo $flag ? 'Yes' : 'No', "\n";
Submission Info
Submission Time | |
---|---|
Task | A - Similar String |
User | iigau |
Language | PHP (php 8.2.8) |
Score | 100 |
Code Size | 449 Byte |
Status | AC |
Exec Time | 14 ms |
Memory | 21468 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 02_corner_01.txt, 02_corner_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 13 ms | 20588 KiB |
00_sample_02.txt | AC | 14 ms | 20888 KiB |
00_sample_03.txt | AC | 13 ms | 20876 KiB |
01_test_01.txt | AC | 13 ms | 21088 KiB |
01_test_02.txt | AC | 12 ms | 20652 KiB |
01_test_03.txt | AC | 12 ms | 21004 KiB |
01_test_04.txt | AC | 13 ms | 20888 KiB |
01_test_05.txt | AC | 13 ms | 20672 KiB |
01_test_06.txt | AC | 13 ms | 20744 KiB |
01_test_07.txt | AC | 13 ms | 20492 KiB |
01_test_08.txt | AC | 13 ms | 20904 KiB |
01_test_09.txt | AC | 13 ms | 20852 KiB |
01_test_10.txt | AC | 12 ms | 20844 KiB |
01_test_11.txt | AC | 12 ms | 20848 KiB |
01_test_12.txt | AC | 14 ms | 21144 KiB |
01_test_13.txt | AC | 12 ms | 21188 KiB |
01_test_14.txt | AC | 13 ms | 21276 KiB |
02_corner_01.txt | AC | 13 ms | 21468 KiB |
02_corner_02.txt | AC | 13 ms | 21088 KiB |