你被骗了(大雾)
其实说个事
#include <bits/stdc++.h>
#define I using
#define AK namespace
#define IOI std
I AK IOI;
int main(){
char x;
int i=1;
while(scanf("%c",&x)){
if(x=='a'||x=='e'||x=='i'||x=='o'||x=='u'){
printf("%d",i);
return 0;
}
i++;
}
printf("0");
return 0;
}
TLE
#include <bits/stdc++.h>
#define I using
#define AK namespace
#define IOI std
I AK IOI;
int main(){
char x;
int i=1;
while(cin>>x){
if(x=='a'||x=='e'||x=='i'||x=='o'||x=='u'){
printf("%d",i);
return 0;
}
i++;
}
printf("0");
return 0;
}
AC?
已知scanf>cin,那为什么会TLE
https://qqwhale.com/problem/6460