10 2021 档案

摘要:A 给一个数列[1...5]其中有一位是错误的,错误位置是0,问哪一位错误 #include <bits/stdc++.h> using namespace std; int main() { for( int i = 1 , x ; i <= 5 ; i ++ ) { cin >> x; if( 阅读全文
posted @ 2021-10-24 21:59 PHarr 阅读(137) 评论(0) 推荐(0)
摘要:题目链接 A 签到题 #include <bits/stdc++.h> using namespace std; int a , b ; int main() { cin >> a >> b; if( a < b ) puts("0"); else puts("10"); } B 枚举即可,判断特殊 阅读全文
posted @ 2021-10-22 22:09 PHarr 阅读(35) 评论(0) 推荐(0)
摘要:A.祝融传火 输入之后,暴力枚举$(x,y)$判断即可 #include <bits/stdc++.h> using namespace std; const int N = 1005; int n , m , a[N][N] , h , w ; bool flag = 0; inline int 阅读全文
posted @ 2021-10-19 22:19 PHarr 阅读(163) 评论(0) 推荐(0)
摘要:A 若三个数相同,答案都是一 若两个数相等大于第三个,相等两数答案为一,第三数答案是大数减小数加一 若一个数严格大于另外两数,最大数为零两个小数为大数减小数加一 #include <bits/stdc++.h> using namespace std; int n , a , b , c ; int 阅读全文
posted @ 2021-10-15 21:01 PHarr 阅读(84) 评论(0) 推荐(0)
摘要:luogu题目选做 阅读全文
posted @ 2021-10-15 21:00 PHarr 阅读(76) 评论(0) 推荐(0)
摘要:luogu题目部分选择,截止日期2021-10-02 阅读全文
posted @ 2021-10-02 20:19 PHarr 阅读(62) 评论(0) 推荐(0)