Submission #931421


Source Code Expand

Copy
<?php
error_reporting(0);
$stdin = file_get_contents('php://stdin');
$line = explode("\n",$stdin);
$fi = 0;
$cnt = 0;
$list = array();
$key = new stdclass();
foreach($line as $l) {
  if (strlen($l)==0) continue;
  if ($fi == 0) {
    $a = explode(" ",$l);
    $key->A = $a;
    $fi++;
    continue;
  }
  if ($fi > 0) {
    break;
    $a = explode(" ",$l);
    $key->A[] = $a[0];
  }
}
printf("%d\n",count(array_unique($key->A)));

Submission Info

Submission Time
Task A - AtCoDeer and Paint Cans
User piro77
Language PHP (5.6.30)
Score 100
Code Size 454 Byte
Status AC
Exec Time 19 ms
Memory 3704 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 6
Set Name Test Cases
Sample 0_000.txt, 0_001.txt
All 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt
Case Name Status Exec Time Memory
0_000.txt AC 19 ms 3704 KB
0_001.txt AC 17 ms 3576 KB
1_002.txt AC 17 ms 3576 KB
1_003.txt AC 17 ms 3452 KB
1_004.txt AC 17 ms 3452 KB
1_005.txt AC 17 ms 3576 KB