摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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; 阅读全文
摘要:
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 < ' 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
[NOIP2002]过河卒 题目链接 进行记忆化搜索,然后强制把马所在的点和控制的点赋值为 0 #include<bits/stdc++.h> #define int long long using namespace std; set<pair<int,int>> st; int f[25][25 阅读全文