Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: exoworldgd

Problemset: Ingredient Validator

Language: cpp

Time: 0.003 second

Submitted On: 2026-02-23 23:54:05

#pragma GCC optimize("O5,unroll-loops,inline,fast-math,omit-frame-pointer,tree-vectorize")
#pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt,tune=native,fma,abm,mmx,sse")
#include <bits/stdc++.h>
#define int long long
#define exoworldgd cin.tie(0)->sync_with_stdio(0),cout.tie(0)
using namespace std;
string a,b,c;
signed main(void){
	exoworldgd;
	cin>>a>>b>>c,cout<<(((a=="spring"||a=="summer")?(b=="full"?(c=="honey"||c=="milk"):(b!="new"||c=="chocolate")):((a=="autumn"||a=="winter")?((b=="waning"||b=="new")?(c=="chocolate"||c=="milk"):true):false))?"Ingredient accepted!":"Ingredient rejected!");
}