![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OJ
天天我等着你
这个作者很懒,什么都没留下…
展开
-
C++实现求命题公式真值表
#include <bits/stdc++.h> using namespace std; #define LMGGTQL #ifdef LMGGTQL #define AND '&' #define OR 'V' #define NOT '!' #define IFF '@' #define IF '-' inline string CharToString(char c) ...原创 2020-03-25 16:52:44 · 3731 阅读 · 0 评论 -
矩阵快速幂模板(重载*运算符)
#include <iostream> using namespace std; class mat { static const auto MOD = 1000000007ll, N = 3; using LL = long long; LL a[N][N]{ 0 }; public: #define All(a) for(LL a = 0; a < N; a++) ...原创 2020-02-23 11:31:39 · 162 阅读 · 0 评论 -
【POJ1426】Find The Multiple
#include <iostream> long long q[1000000]{ 0,1 }; int main() { for (long long n, ans, head, tail; std::cin >> n && n; q[1] = 1) { for (q[0] = head = tail = 1; head <= tail; he...原创 2020-02-13 16:55:23 · 254 阅读 · 1 评论