摘要: A. Orders 按照订单的结束时间排序,然后遍历一遍即可 #include<bits/stdc++.h> using namespace std; #define int long long using pii = pair<int, int>; using i32 = int32_t; voi 阅读全文
posted @ 2023-12-04 22:12 PHarr 阅读(56) 评论(0) 推荐(0) 编辑
摘要: A. Beth's Cookies n = int(input()) s = input() res = [] for i in s : if res == []: res.append(i) elif i == '(': if res[-1] == ')': res.append("*") res 阅读全文
posted @ 2023-12-04 14:21 PHarr 阅读(45) 评论(0) 推荐(1) 编辑