摘要: 防一波新生赛的大数据 转别人的板子,用字符getchar读入比scanf快。 ##快读: inline int read() { char ch = getchar(); int x = 0, f = 1; while (ch < '0' || ch > '9') { if (ch == '-') 阅读全文
posted @ 2022-05-07 20:39 misasteria 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 新生赛D题贪心一直WA而又debug不出来,只能用对拍拍一下子 对拍的基本思路:有正确程序/小范围正确程序right.cpp, 你的WA程序wrong.cpp, 随机数生成测试的程序test.cpp三个程序 test.cpp: srand(time(0)) 首先选定时间作为随机数种子 然后用随机数生 阅读全文
posted @ 2022-05-07 20:21 misasteria 阅读(224) 评论(0) 推荐(0) 编辑