/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 532.0 KiB
#2 Accepted 1ms 532.0 KiB
#3 Accepted 1ms 320.0 KiB
#4 Accepted 1ms 324.0 KiB
#5 Accepted 1ms 324.0 KiB
#6 Wrong Answer 1ms 764.0 KiB

Code

#include <iostream>
#include <cmath>     ///mathematics
#include <vector>    ///array
#include <regex>     ///searching_prefix_suffix
#include <algorithm> ///finding_max_min_from_array
#include <string>    ///string_manipulation
#include <numeric>   ///findin total sum of an array
using namespace std;

int main() {
    string ch="leadinguniversity";
    string s;
    int count=0;
    cin >> s;
    for(int i:s){
        if(i=='l'&& i=='e'&& i=='a'&& i=='d'&& i=='i'&& i=='n'&& i=='g'&& i=='u'&& i=='v'&& i=='s'&& i=='t'&&i=='y'&& i=='r'){
            count++;
        }
        else{
            count=0;
        }
       
    }
        
    
    if(count>0){
        cout << "Leading University";
    }
    else{
        cout << "Impossible";
    }
    
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1024 Rearrange Character
Contest
Brain booster #2
Language
C++20 (G++ 13.2.0)
Submit At
2024-03-06 14:03:12
Judged At
2024-11-11 03:42:07
Judged By
Score
40
Total Time
1ms
Peak Memory
764.0 KiB