上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 39 下一页
摘要: A. Yura's New Name 一个简单的 dp,状态是$f[i][0/1]$表示前$i$位变成合法的且最后一位是^或_的最小代价。 如果是_只能从^转移过来,如果是^则都可以转移过来 #include <bits/stdc++.h> using namespace std; void sol 阅读全文
posted @ 2023-04-18 22:54 PHarr 阅读(26) 评论(0) 推荐(0)
摘要: L1-1 嫑废话上代码 Talk is cheap. Show me the code. L1-2 猫是液体 a , b , c = map( int , input().split(' ') ) print( a * b * c ) L1-3 洛希极限 #include <bits/stdc++. 阅读全文
posted @ 2023-04-18 21:25 PHarr 阅读(27) 评论(0) 推荐(0)
摘要: L1-1 人与神 To iterate is human, to recurse divine. L1-2 两小时学完C语言 #include <bits/stdc++.h> using namespace std; int main() { int n, m, k; cin >> n >> m > 阅读全文
posted @ 2023-04-15 16:50 PHarr 阅读(40) 评论(0) 推荐(0)
摘要: L1-1 今天我要赢 #include <bits/stdc++.h> using namespace std; int main() { cout << "I'm gonna win! Today!\n"; cout << "2022-04-23\n"; return 0; } L1-2 种钻石 阅读全文
posted @ 2023-04-12 21:31 PHarr 阅读(46) 评论(0) 推荐(0)
摘要: A - Double Click #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n , d; cin >> n >> d; vector<int> a(n); for( 阅读全文
posted @ 2023-04-11 20:39 PHarr 阅读(133) 评论(0) 推荐(0)
摘要: L1-1 自动编程 #include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { int n; cin >> n; printf("print(%d)\n" , n ); return 0; 阅读全文
posted @ 2023-04-10 21:33 PHarr 阅读(52) 评论(0) 推荐(0)
摘要: A. Coins #include <bits/stdc++.h> using namespace std; #define int long long int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > ' 阅读全文
posted @ 2023-04-07 22:00 PHarr 阅读(259) 评论(5) 推荐(3)
摘要: A. Insert Digit 放在第一个比他小的数前面 #include <bits/stdc++.h> using namespace std; void solve() { int n, d; cin >> n >> d; string s; cin >> s; for (char i: s) 阅读全文
posted @ 2023-04-05 16:57 PHarr 阅读(62) 评论(0) 推荐(0)
摘要: A-小石的图形 #include<bits/stdc++.h> using namespace std; const double pi = 3.1415926; int32_t main() { double n , r; cin >> n; r = n / pi; printf("%.3lf" 阅读全文
posted @ 2023-04-05 15:43 PHarr 阅读(24) 评论(0) 推荐(0)
摘要: A. Garland 分类讨论 #include <bits/stdc++.h> using namespace std; void solve(){ string s; cin >> s; map<char,int> cnt; for( auto c : s ) cnt[c]++; if( cnt 阅读全文
posted @ 2023-04-03 19:40 PHarr 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 39 下一页