| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151668 | 翁思宸 | 删除单词后缀 | C++ | Runtime Error | 2 MS | 348 KB | 454 | 2026-04-17 18:49:29 |
//1469 删除单词后缀 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ string n; int s,l; cin>>n; l=n.size(); if(n.substr(l-2,2)=="er" || n.substr(l-2,2)=="ly"){ n.erase(l-2,2); cout<<n; return 0; } else if(n.substr(l-3,3)=="ing"){ n.erase(l-3,3); cout<<n; return 0; } return 0; } //789113
terminate called after throwing an instance of '