摘要:
# A. Musical Puzzle ```cpp #include using namespace std; void solve(){ int n; string s; cin >> n >> s; set cnt; for( int i = 0 ; i + 1 > t; while( t - 阅读全文
摘要:
# A. Drill Wood to Make Fire ```cpp #include using namespace std; #define int long long void solve(){ int n , s , v; cin >> n >> s >> v; cout = n) > t 阅读全文
摘要:
# A - Attack ```cpp #include using namespace std; #define int long long int32_t main() { int a , b; cin >> a >> b; cout using namespace std; #define i 阅读全文
摘要:
# A. 签到啦 排序做就好了 ```cpp #include using namespace std; #define int long long void solve(){ int n , w , res = 0; cin >> n >> w; vector a(n); for( auto & 阅读全文
摘要:
# A - Overall Winner ```cpp #include using namespace std; #define int long long int32_t main(){ ios::sync_with_stdio(false); cin.tie(nullptr) , cout.t 阅读全文
摘要:
# C. Darkness I 首先根据短边放一条对角线,然后往后每隔一列只放一个即可。 ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false), 阅读全文
摘要:
A. 小斧头 $O(N^3)$ 20 points 暴力枚举左右端点,然后暴力求区间最值 #include <bits/stdc++.h> using namespace std; #define int long long int read(){...} int32_t main() { int 阅读全文
摘要:
A. Love Story #include<bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch 阅读全文
摘要:
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 阅读全文