/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 2ms 540.0 KiB
#2 Accepted 2ms 540.0 KiB
#3 Accepted 2ms 332.0 KiB
#4 Accepted 2ms 516.0 KiB
#5 Accepted 2ms 328.0 KiB
#6 Wrong Answer 2ms 544.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'){
            if(s.length()==17){
                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++11 (G++ 13.2.0)
Submit At
2024-03-06 14:29:28
Judged At
2024-11-11 03:41:57
Judged By
Score
40
Total Time
2ms
Peak Memory
544.0 KiB