Submission
Status:
Compilation Error
Subtask/Task Score:
Score: 0
User: rice_ot
Problemset: คาราเมล
Language: cpp
Time: 0.000 second
Submitted On: 2025-10-17 11:10:05
#include <bits/stdc++.h>
//#include "caramel.h"
using namespace std;
bool isInCaramel(char C){
string w = "CaRaMeL";
for(auto& i : w){
if(i == c){
return true;
}
}
return false;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while (t--) {
char c;
cin >> c;
if (isInCaramel(c)) {
cout << "Y\n";
} else {
cout << "N\n";
}
}
return 0;
}