摘要: #include <iostream>#include <string.h>#include <vector>using namespace std; int main(){ vector<string> c; int n; cin >> n; int a, b; for(int i=0; i<n; 阅读全文
posted @ 2017-08-10 20:00 diamondDemand 阅读(451) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int main() { int n; cin >> n; int len=0; int p=0; char str[1001]; int m = 1; memset(str, '\0', sizeof(str)); while(true) ... 阅读全文
posted @ 2017-08-10 19:41 diamondDemand 阅读(497) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector>using namespace std; int main(){ vector<char> x; int n; cin >> n; int i=0; char a[10]; a[0] = '\0'; while(a[0]!='E 阅读全文
posted @ 2017-08-10 15:35 diamondDemand 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 解题思路: a.由于借出或归还信息可能丢失,是故如果第一次就见到归还直接跳过(借出信息丢失),连续两次见到同一本书的借出第一次借出信息丢掉(第一次归还信息丢失)。 b.计算平均阅读时间,有除零错误,浮点数四舍五入(加上0.5f强制转换为int) #include <iostream>#include 阅读全文
posted @ 2017-08-10 14:57 diamondDemand 阅读(832) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { char date[11]; cin >> date; for(int i=6; i<10; i++) cout << date[i]; cout << date[5]; for(int i=0; i<5; i++) cout << date[i]; return 0; } 阅读全文
posted @ 2017-08-10 08:56 diamondDemand 阅读(255) 评论(0) 推荐(0) 编辑