摘要:
A-Unsupported Type: 送分的,输入完在一遍循环查找即可(当然也可以用二分查找) 代码: #include<bits/stdc++.h> using namespace std; bool flag = false; int n,x,a[105]; int main(){ cin > 阅读全文
摘要:
主播还是太菜了,赛时才只写出来三题QAQ. A-Content Too Large: 可以边输入边判断,当重量超过m时就打上一个标记。 最后根据标记判断输出yes还是no。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,a,m,c 阅读全文