摘要:
小思路:建立string类型的二维数组stu[1005][2],假设试机座位号为t,将准考证号S1存在stu[t][0],考试座位号Stu[t][0]中,直接查询就好~ #include <iostream> #include <cstring> #include <cmath> using nam 阅读全文
摘要:
小关键:题目要求不足1秒的时间四舍五入到秒,所以可以先给(c2-c1)加上50,这样如果(c2-c1)的小数位大于等于0.5就会进位,小于0.5则会舍去 #include <iostream> #include <cstring> #include <cmath> using namespace s 阅读全文
摘要:
#include <iostream> #include <cstring> #include <cmath> using namespace std; const int N = 100; int weights[17] = {7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2 阅读全文