摘要:
A. Forgetting Things 签到题,有坑点 直接判断每种情况即可,注意a = 9, b = 1的情况。 1 #include <iostream> 2 using namespace std; 3 4 int main() 5 { 6 int a, b; 7 cin >> a >> b 阅读全文
摘要:
题目链接:https://www.luogu.org/problem/P1522 题目大意: 原题在链接里,但是原题读起来比较晕,我在这里转化了一下题意。 给出N个点的坐标,然后给出这N个点的邻接矩阵。 例如: A B A 0 1 代表A与B直接连接 B 1 0 给出的邻接矩阵是几个连通图,然后你可 阅读全文