上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: // 4'01" #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if(s.size() == 4) { int num = (s[0] - '0') * 10 + s[1] - '0'; 阅读全文
posted @ 2024-08-17 01:13 Frodnx 阅读(28) 评论(0) 推荐(0)
摘要: // 1'48" #include <iostream> using namespace std; int main() { int n, k, m; cin >> n >> k >> m; int res = (n - k * m > 0) ? n - k * m : 0; cout << res 阅读全文
posted @ 2024-08-17 01:09 Frodnx 阅读(17) 评论(0) 推荐(0)
摘要: print("To iterate is human, to recurse divine.") 阅读全文
posted @ 2024-08-17 01:06 Frodnx 阅读(22) 评论(0) 推荐(0)
摘要: // 34'18" #include <bits/stdc++.h> using namespace std; int arr[3][3]; int open[3][3]; map<int,int> hash; int firx = 1, firy = 1, firv = 1; void init( 阅读全文
posted @ 2024-08-17 01:05 Frodnx 阅读(22) 评论(0) 推荐(0)
摘要: 转换成2进制,n表示1,y表示0。 // 4'39" #include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; for(int i = 1; i <= m; ++ i) { int res 阅读全文
posted @ 2024-08-17 00:29 Frodnx 阅读(35) 评论(0) 推荐(0)
摘要: foundPos == std::string::npos // 说明没有查找到 // 9'15" #include <bits/stdc++.h> using namespace std; int main() { string s; int cnt = 0, first = 0, potcnt 阅读全文
posted @ 2024-08-16 21:35 Frodnx 阅读(13) 评论(0) 推荐(0)
摘要: // 15'0" #include <bits/stdc++.h> using namespace std; int main() { int arr[6], flag[6]; int total = 0; int m = 0; // max for(int i = 0; i < 6; ++ i) 阅读全文
posted @ 2024-08-16 21:23 Frodnx 阅读(26) 评论(0) 推荐(0)
摘要: // 2'4" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long double res = 0; for(int i = 1; i <= n; ++ i) { long double x; 阅读全文
posted @ 2024-08-16 21:02 Frodnx 阅读(15) 评论(0) 推荐(0)
摘要: // 8'30" #include <bits/stdc++.h> using namespace std; int main() { double a, c; int b; cin >> a >> b >> c; double res = (a / c) * (b == 0 ? (double)2 阅读全文
posted @ 2024-08-16 20:59 Frodnx 阅读(30) 评论(0) 推荐(0)
摘要: //43" #include <iostream> int main() { int a, b, c; std::cin >> a >> b >> c; std::cout << a*b*c; return 0; } 阅读全文
posted @ 2024-08-16 01:19 Frodnx 阅读(12) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页