Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define endl "\n"
#define int long long
const int M = 3e5 + 5, MOD = 998244353;
int32_t main()
{
string s = "leadinguniversity";
int x = s.size();
string g;
cin>>g;
int y = g.size();
int total = 0;
if(y == x)
{
for(int i = 0;i < x;i++)
{
for(int j = 0;j < x;j++)
{
if(g[i] == s[j])
{
total++;
}
}
}
if(total >= x)
{
cout<<"Leading University";
}
else
{
cout<<"Impossible";
}
}
else
{
cout<<"Impossible";
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1024 Rearrange Character
- Contest
- Brain booster #2
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-03-06 13:39:58
- Judged At
- 2024-11-11 03:42:16
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 764.0 KiB