/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 2ms 532.0 KiB

Code

#include<bits/stdc++.h>
#define ll unsigned long long
using namespace std;


int main(){
    ll t;
    cin>>t;
    while(t--){
        int n,k;
        cin >>n>>k;
        string num;
        cin >>num;
        if(num.length()==k){
            cout<<"0"<<endl;
        }
        else{
        sort(num.rbegin(),num.rend());

        int sz=num.size();


        for(int i =0;i<sz-k;i++){
            cout<<num[i];
        }
        cout<<endl;
        }
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1006 Remove K Digits
Contest
Sylhet ICPC 2024 Collaborative Challenge: Episode 2
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-30 10:16:53
Judged At
2024-11-11 02:35:08
Judged By
Score
0
Total Time
2ms
Peak Memory
532.0 KiB