摘要: // 5'04" #include <bits/stdc++.h> using namespace std; const int N = 24; int arr[N]; int main() { for(int i = 0; i <= 23; ++ i) cin >> arr[i]; int num 阅读全文
posted @ 2024-08-17 19:15 Frodnx 阅读(20) 评论(0) 推荐(0)
摘要: // 1'56" #include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; for(int i = 1; i <= n; ++ i) { double d; cin >> d; if(d < 阅读全文
posted @ 2024-08-17 01:16 Frodnx 阅读(39) 评论(0) 推荐(0)
摘要: // 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)