摘要: include include using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector a(n), b(n + 1), c(n + 1); for (int i = n - 1; 阅读全文
posted @ 2024-11-29 22:04 52H1Z 阅读(17) 评论(0) 推荐(0)
摘要: include include using namespace std; int main() { int m; cin >> m; while (m--) { string s, t; cin >> s >> t; int s_len = s.length(); int t_len = t.len 阅读全文
posted @ 2024-11-28 09:50 52H1Z 阅读(30) 评论(0) 推荐(0)
摘要: include<bits/stdc++.h> using namespace std; int main() { int ans=0; int t; cin>>t; vectora(t); for(int i=0;i<t;i++)cin>>a[i]; for(int i=1;i<t;i++)if(a 阅读全文
posted @ 2024-11-27 14:41 52H1Z 阅读(19) 评论(0) 推荐(0)
摘要: include<bits/stdc++.h> using namespace std; string st; int n,a[251],l,k; int main() { cin>>st;cin>>n;l=st.size(); for(int i=0;i<l;i++) a[i]=st[i]-'0'; 阅读全文
posted @ 2024-11-26 21:23 52H1Z 阅读(22) 评论(0) 推荐(0)
摘要: include using namespace std; int main() { int n; cin >> n; int times[1000]; int order[1000]; for (int i = 0; i < n; i++) { cin >> times[i]; order[i] = 阅读全文
posted @ 2024-11-24 16:21 52H1Z 阅读(30) 评论(0) 推荐(0)
摘要: nt** rangeAddQueries(int n, int** queries, int queriesSize, int* queriesColSize, int* returnSize, int** returnColumnSizes) { int diff=malloc(sizeof(in 阅读全文
posted @ 2024-11-21 20:58 52H1Z 阅读(28) 评论(0) 推荐(0)
摘要: int countSubmatrices(int** grid, int gridSize, int* gridColSize, int k) { int account=0; int arr[gridSize][gridColSize[0]]; arr[0][0] = grid[0][0]; if 阅读全文
posted @ 2024-11-20 21:31 52H1Z 阅读(29) 评论(0) 推荐(0)
摘要: int* corpFlightBookings(int** bookings, int bookingsSize, int* bookingsColSize, int n, int* returnSize) { int* arr=malloc(sizeof(int)*n) ; returnSize 阅读全文
posted @ 2024-11-19 17:31 52H1Z 阅读(12) 评论(0) 推荐(0)
摘要: bool isCovered(int** ranges, int rangesSize, int* rangesColSize, int left, int right) { int arr[100]={0}; scanf("%d,%d",&left,&right); for(int i=0;i<r 阅读全文
posted @ 2024-11-17 21:18 52H1Z 阅读(55) 评论(0) 推荐(0)
摘要: include<bits/stdc++.h> using namespace std; int a[2000200]; int main() { int n,c; cin>>n>>c; for(int i = 0;i < n;i ++)cin>>a[i]; sort(a,a + n); long l 阅读全文
posted @ 2024-11-15 20:24 52H1Z 阅读(19) 评论(0) 推荐(0)