摘要:
贴贴贴。 没技巧: #include <bits/stdc++.h> using namespace std; struct node { int year; int month; int day; string name; } s[100010]; bool cmp(node n1,node n2 阅读全文
posted @ 2024-04-16 21:37
YuKiCheng
阅读(8)
评论(0)
推荐(0)
摘要:
我看其他博客用的reverse,但是下标我真的有点糊涂,以下是参考某位dalao的。 #include <bits/stdc++.h> using namespace std; struct node { int sno; int data; int next; } s[100010]; int m 阅读全文
posted @ 2024-04-16 13:29
YuKiCheng
阅读(14)
评论(0)
推荐(0)
摘要:
字符串处理,费劲。 #include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; //找到E的位置 int index = s.find('E'); //分割开 string s1 = s.substr(1, 阅读全文
posted @ 2024-04-16 11:21
YuKiCheng
阅读(16)
评论(0)
推荐(0)