| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82481 | sh25_shenpy | 字符串输入输出处理实验 | C++ | 解答错误 | 0 MS | 248 KB | 287 | 2026-01-15 10:52:16 |
#include<iostream> using namespace std; int main(){ string s1,s2,s; int n=0; getline(cin,s1); getline(cin,s2); s2=s1+s2; cout<<s2<<endl; while(getline(cin,s)){ cout<<s[s.size()-1]; ++n; } cout<<'\n'<<2+n; return 0; }