Submission #7515634


Source Code Expand

Copy
#include <iostream>
using namespace std;

main(){
	int n;
	string s[3] = {"Sunny", "Cloudy", "Rainy"};
	string k;
	
	cin>>k;
	if(k[0] == 'S')
		cout<<s[1];
	else if(k[0] == 'C')
		cout<<s[2];
	else
		cout<<s[0];
	
}

Submission Info

Submission Time
Task A - Weather Prediction
User Ccucumber12
Language C++14 (GCC 5.4.1)
Score 100
Code Size 231 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 3
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt
All 00-sample-01.txt, 00-sample-02.txt, 02-cloudy.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 1 ms 256 KB
00-sample-02.txt AC 1 ms 256 KB
02-cloudy.txt AC 1 ms 256 KB