Submission #44708653


Source Code Expand

// #cheat_when_I_was_young
// #cheatkhitacontre #khionhatoicheat
// #thaycuckythatvong
#include "bits/stdc++.h"
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
signed main() {
    IOS;
    string s;
    cin >> s;
    for (int i = 0; i < s.size();) {
        if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' || s[i] == 'u') s.erase(s.begin()+i);
        else ++i;
    }
    cout << s;
}

Submission Info

Submission Time
Task A - tcdr
User cheatkhitacontre
Language C++ 20 (gcc 12.2)
Score 100
Code Size 448 Byte
Status AC
Exec Time 1 ms
Memory 3596 KiB

Compile Error

Main.cpp: In function ‘int main()’:
Main.cpp:11:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   11 |     for (int i = 0; i < s.size();) {
      |                     ~~^~~~~~~~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample sample00.txt, sample01.txt, sample02.txt
All sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt
Case Name Status Exec Time Memory
sample00.txt AC 1 ms 3428 KiB
sample01.txt AC 1 ms 3588 KiB
sample02.txt AC 1 ms 3428 KiB
testcase00.txt AC 1 ms 3412 KiB
testcase01.txt AC 1 ms 3440 KiB
testcase02.txt AC 1 ms 3512 KiB
testcase03.txt AC 1 ms 3372 KiB
testcase04.txt AC 1 ms 3464 KiB
testcase05.txt AC 1 ms 3516 KiB
testcase06.txt AC 1 ms 3456 KiB
testcase07.txt AC 1 ms 3332 KiB
testcase08.txt AC 1 ms 3596 KiB