Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6286 | 黄宜洋 | 如何得到"hello" | C++ | Runtime Error | 1996 MS | 252 KB | 596 | 2025-01-16 15:35:07 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char n[1501],b[10]="hello"; cin>>n; int a=strlen(n),c=0; for(int i=0;i<a;i++){ while(c!=5){ if(n[i]==b[c]){ c++; } else{ continue; } } break; } c==5 ? printf("YES"):printf("NO"); return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275