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:08:54
#include <bits/stdc++.h>
#include "caramel.h"
using namespace std;
bool isInCaramel(char C){
string w = "CaRaMeL";
for(int i = 0; i<7; i++){
if(w[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;
}