分很菜…
以后写题一定记得把题意理清楚了再开始写。
模拟题还是大坑,代码还是写得不够多,代码量一大就写bug。
补题
l1-8 估值一亿的AI核心代码
补题链接:https://pintia.cn/problem-sets/994805046380707840/problems/1111914599412858885
#include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <algorithm> #include <string> #include <vector> #include <queue> #include <set> #include <map> #define INF 0x3f3f3f3f #define ll long long #define lowbit(x) (x&(-x)) #define PI acos(-1) #define ms(x,y) memset(x, y, sizeof(x)) using namespace std; const int maxn = 1e4+7; char s[maxn]; char punc[] = "`~!@#$%^&*()_+-={}|[]\;':",./<>?"; char canYou[] = "can you"; // 7 char couldYou[] = "could you"; // 9 char me[] = "me"; // 2 inline bool isPunc(char c) { for(int i=0;punc[i]!='