摘要: 代码 #include <iostream> #include <cstdio> #include <string> #include <set> #include <vector> using namespace std; int r[1000000]={0}; char rc[1000000]; 阅读全文
posted @ 2022-07-19 14:57 qwasdasd 阅读(21) 评论(0) 推荐(0)
摘要: 代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; float a[10]; int main() { float w,t,l; for(int i=0;i<3;i++){ cin>>w>> 阅读全文
posted @ 2022-07-19 14:05 qwasdasd 阅读(29) 评论(0) 推荐(0)
摘要: 易错点 这道题的测试点7的数据很大,因此如果硬要用顺序查找在找到之前会超时,只能用所谓的二分法才能通过这个点。 用二分查找的时候,需要注意long long也会溢出,需要设置一个特别的判断。 代码 #include <iostream> #include <cstdio> #include <iom 阅读全文
posted @ 2022-07-19 13:41 qwasdasd 阅读(80) 评论(0) 推荐(0)