摘要:
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"); } 阅读全文
摘要:
A. Yura's New Name 一个简单的 dp,状态是$f[i][0/1]$表示前$i$位变成合法的且最后一位是^或_的最小代价。 如果是_只能从^转移过来,如果是^则都可以转移过来 #include <bits/stdc++.h> using namespace std; void sol 阅读全文
摘要:
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++. 阅读全文
摘要:
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 > 阅读全文
摘要:
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 种钻石 阅读全文
摘要:
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( 阅读全文
摘要:
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; 阅读全文
摘要:
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 > ' 阅读全文
摘要:
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) 阅读全文
摘要:
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" 阅读全文