| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158810 | 林睿 | 如何得到"hello" | Python3 | Compile Error | 0 MS | 0 KB | 309 | 2026-08-22 17:38:21 |
#include<iostream> #include<cstring> using namespace std; int main(){ char a[1550]; gets(a); int p=0; int len=strlen(a); char b[5]={'h','e','l','l','o'}; for(int i=0;i<len;i++){ if(a[i]==b[p]){ p++; } } if(p==5){ cout<<"YES"; } else{ cout<<"NO"; } }
File "Main.py", line 3
using namespace std;
^
SyntaxError: invalid syntax