Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: modx9572
Problemset: Ingredient Validator
Language: cpp
Time: 0.002 second
Submitted On: 2026-04-16 13:45:53
#include <bits/stdc++.h>
using namespace std;
int main(){
string s,m,i;
cin >> s >> m >> i;
if(s=="spring"||s=="summer"){
if(m=="full"){
if(i=="honey"||i=="milk"){
cout<<"Ingredient accepted!";
}
else{
cout<<"Ingredient rejected!";
}
}
else{
if(m=="new"&&i!="chocolate"){
cout<<"Ingredient rejected!";
}
else{
cout<<"Ingredient accepted!";
}
}
}
else{
if(s=="autumn"||s=="winter"){
if(m=="waning"||m=="new"){
if(i=="chocolate"||i=="milk"){
cout<<"Ingredient accepted!";
}
else{
cout<<"Ingredient rejected!";
}
}
else{
cout<<"Ingredient accepted!";
}
}
else{
cout<< "Ingredient rejected!";
}
}
}