Submission #7248703


Source Code Expand

Copy
<?php
fscanf(STDIN, '%s', $s);
fscanf(STDIN, '%s', $t);
$ans = 0;
for ($i = 0; $i < 3; $i++) {
    if ($s[$i] === $t[$i]) $ans++;
}
echo $ans . PHP_EOL;

Submission Info

Submission Time
Task A - Tenki
User hideyuk1
Language PHP7 (7.0.15)
Score 100
Code Size 159 Byte
Status AC
Exec Time 11 ms
Memory 4856 KB

Judge Result

Set Name All Sample
Score / Max Score 100 / 100 0 / 0
Status
AC × 14
AC × 3
Set Name Test Cases
All sample_01, sample_02, sample_03, testcase_0, testcase_1, testcase_10, testcase_2, testcase_3, testcase_4, testcase_5, testcase_6, testcase_7, testcase_8, testcase_9
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 AC 11 ms 4856 KB
sample_02 AC 9 ms 4604 KB
sample_03 AC 9 ms 4604 KB
testcase_0 AC 9 ms 4604 KB
testcase_1 AC 9 ms 4604 KB
testcase_10 AC 9 ms 4604 KB
testcase_2 AC 9 ms 4604 KB
testcase_3 AC 9 ms 4604 KB
testcase_4 AC 9 ms 4604 KB
testcase_5 AC 9 ms 4604 KB
testcase_6 AC 9 ms 4604 KB
testcase_7 AC 9 ms 4604 KB
testcase_8 AC 9 ms 4604 KB
testcase_9 AC 9 ms 4604 KB