上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
摘要: A - Job Interview #include <bits/stdc++.h> using namespace std; int main(){ int n; string s; cin >> n >> s; if( s.find("x") != -1 ){ printf("No\n"); } 阅读全文
posted @ 2023-04-19 18:32 PHarr 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(19) 评论(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 阅读(13) 评论(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 阅读(22) 评论(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 阅读(29) 评论(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 阅读(105) 评论(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 阅读(19) 评论(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 阅读(237) 评论(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 阅读(43) 评论(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 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页