上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页
摘要: A - T-shirt #include <bits/stdc++.h> using namespace std; int32_t main(){ double a , b , c , x; cin >> a >> b >> c >> x; if( x <= a ) cout << "1.00000 阅读全文
posted @ 2023-05-06 21:01 PHarr 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 首先矩阵快速幂模板 ```cpp struct matrix { static constexpr int mod = 1e9 + 7; int x, y; vector> v; matrix() {} matrix(int x, int y) : x(x), y(y) { v = vector>( 阅读全文
posted @ 2023-05-06 20:29 PHarr 阅读(14) 评论(0) 推荐(0) 编辑
摘要: A - N-choice question #include<bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch 阅读全文
posted @ 2023-05-03 21:38 PHarr 阅读(19) 评论(0) 推荐(0) 编辑
摘要: A - Water Pressure #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; printf("%.6lf\n" , n / 100.0 ); return 0; } B - Election 阅读全文
posted @ 2023-04-30 17:56 PHarr 阅读(18) 评论(0) 推荐(0) 编辑
摘要: A. Tricky Sum 公式求出1 到 n的和,然后枚举二等整次幂。 #include <bits/stdc++.h> using namespace std; #define int long long void solve(){ int n; cin >> n; int sum = ( 1 阅读全文
posted @ 2023-04-29 17:42 PHarr 阅读(15) 评论(0) 推荐(0) 编辑
摘要: A. TubeTube Feed #include <bits/stdc++.h> using namespace std; int main() { int q; cin >> q; while (q--) { int n, t, res = -1, id = -1; cin >> n >> t; 阅读全文
posted @ 2023-04-26 20:05 PHarr 阅读(55) 评论(0) 推荐(0) 编辑
摘要: A. Remove Duplicates #include <bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1, ch = getchar(); while ((ch < ' 阅读全文
posted @ 2023-04-25 16:00 PHarr 阅读(30) 评论(0) 推荐(0) 编辑
摘要: A 猫猫与广告 #include <bits/stdc++.h> using namespace std; int32_t main(){ int a , b , c , d ; cin >> a >> b >> c >> d; if( a > b ) swap(a , b); if( c > d 阅读全文
posted @ 2023-04-24 19:30 PHarr 阅读(11) 评论(0) 推荐(0) 编辑
摘要: A. Wrong Subtraction #include <bits/stdc++.h> using namespace std; int32_t main() { int n, k; cin >> n >> k; while (k--) { if (n % 10 == 0) n /= 10; e 阅读全文
posted @ 2023-04-23 16:03 PHarr 阅读(22) 评论(0) 推荐(0) 编辑
摘要: [NOIP2002]过河卒 题目链接 进行记忆化搜索,然后强制把马所在的点和控制的点赋值为 0 #include<bits/stdc++.h> #define int long long using namespace std; set<pair<int,int>> st; int f[25][25 阅读全文
posted @ 2023-04-19 19:12 PHarr 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页