Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
string u = "leadinguniversity";
sort(u.begin(),u.end());
string s; cin>>s;
sort(s.begin(),s.end());
if(s==u) cout<<"Leading University"<<endl;
else cout<<"Impossible"<<endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1024 Rearrange Character
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-03-02 18:06:17
- Judged At
- 2024-03-03 20:02:02
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB