摘要: 这里有一道老实题,大家快来踩爆它! 交互题:根据你的输出决定下一次的输入。 请听题: 管理员有个乱序数列(举例:{14, 24, 9, 19}),排序以后是个等差数列({9, 14, 19, 24}),现在他只告诉你有n个数(样例n = 4)却不给你数列,让你求出最小的那个数(9)和公差d(5)。 阅读全文
posted @ 2019-02-14 19:26 AlphaWA 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 水题放送,写得依旧丑: 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <algorithm> 5 #include <vector> 6 using namespace std; 7 8 const in 阅读全文
posted @ 2019-02-14 00:05 AlphaWA 阅读(169) 评论(0) 推荐(0) 编辑