摘要: 一、注意数的范围,int,long long int,不能确定就选最大的 二、当输入过多cin就很浪费时间,加上 ios::sync_with_stdio(false); 阅读全文
posted @ 2020-09-05 15:53 liyou555 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 解题思路: 寻找两个向量中相同位置的数,将其相乘,最后求和即可 (利用map查找) AC代码: #include<iostream> #include<map> using namespace std; int main() { //开始60分,运行超时 //提速,使cin与cout的速度与scan 阅读全文
posted @ 2020-09-05 15:50 liyou555 阅读(228) 评论(3) 推荐(0) 编辑