摘要:
给定空间里的 n 个点,其中没有三点共线。每两个点之间都用红色或黑色的线段连接。 求 3 条边同色的三角形个数。 n≤1000n≤1000。 同色的= 总数- 杂色的 杂色的直接乘法原理就行,但注意ij 和ji 一样 #include <iostream> #include <cstring> #i 阅读全文
posted @ 2023-04-19 20:52
towboat
阅读(14)
评论(0)
推荐(0)
摘要:
写下区间[a,b]的所有数 ,问一共有多少个 0 #include <iostream> #include <cstring> #include <vector> using namespace std; #define int long long int n,f[40][40][2][2] ; v 阅读全文
posted @ 2023-04-19 20:12
towboat
阅读(16)
评论(0)
推荐(0)
摘要:
定问在[A,B] 中,有多少个整数本身能被m整除,各个数位上数字之和也能被m整除? #include <iostream> #include <cstring> #include <vector> using namespace std; vector<int> a; int m,f[40][105 阅读全文
posted @ 2023-04-19 16:49
towboat
阅读(19)
评论(0)
推荐(0)