1 条题解
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string last, now; last = ""; while (cin >> now) { if (now == "am" || now == "are" || now == "is") { if (last == "i") now = "am"; else if (last == "you") now = "are"; else now = "is"; } cout << now << " "; last = now; } return 0; }
- 1
信息
- ID
- 1976
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 6
- 标签
- (无)
- 递交数
- 20
- 已通过
- 10
- 上传者