/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 320.0 KiB
#2 Wrong Answer 3ms 324.0 KiB
#3 Wrong Answer 4ms 600.0 KiB

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-10-03 13:27:46
Judged By
Score
0
Total Time
4ms
Peak Memory
600.0 KiB