Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
string str;
cin >> str;
if(str.size()>1){
for(int i=0; i<str.size(); i++){
if(str[i]%2 == 0){
str[i] = '0';
}
}
for(int i=0; i<str.size(); i++){
if(str[i] >= 97 && str[i] <= 122){
cout << str[i] ;
}
}
cout << endl;
}else{
cout << "it" << endl;
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1080 String Algorithm
- Contest
- Bangladesh 2.0
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2024-08-16 16:17:10
- Judged At
- 2024-11-11 03:15:19
- Judged By
- Score
- 0
- Total Time
- 6ms
- Peak Memory
- 772.0 KiB