Submission #7517001


Source Code Expand

Copy
<?php
fscanf(STDIN, '%s', $s);
if ($s === 'Sunny') $ans = 'Cloudy';
elseif ($s === 'Cloudy') $ans = 'Rainy';
elseif ($s === 'Rainy') $ans = 'Sunny';
echo $ans . PHP_EOL;

Submission Info

Submission Time
Task A - Weather Prediction
User hideyuk1
Language PHP7 (7.0.15)
Score 100
Code Size 174 Byte
Status
Exec Time 12 ms
Memory 4856 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00-sample-01.txt, 00-sample-02.txt
All 100 / 100 00-sample-01.txt, 00-sample-02.txt, 02-cloudy.txt
Case Name Status Exec Time Memory
00-sample-01.txt 12 ms 4856 KB
00-sample-02.txt 9 ms 4604 KB
02-cloudy.txt 9 ms 4604 KB