Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2725 | 孙浚轩 | 如何得到"hello" | C++ | Runtime Error | 2000 MS | 252 KB | 331 | 2024-01-21 00:23:42 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1500],hello[5]={'h','e','l','l','o'}; cin>>a; int i=0,j=0; for(;i<5;i++){ while(a[j]!=hello[i]){ if(a[j]=='\0'){ cout<<"NO"; return 0; } } i++; } cout<<"YES"; return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275