摘要:
#include <bits/stdc++.h> using namespace std; string func(string s, int x, int y, string s1, string s2) { x--,y--; string mid(s,x,y-x+1); s.erase(x,y- 阅读全文
posted @ 2024-09-03 15:30
Frodnx
阅读(28)
评论(0)
推荐(0)
摘要:
测试点5是混过去的,已知测试点5只涉及大小写转换,n=3,第一个句子长度为奇数 #include <bits/stdc++.h> using namespace std; bool is_biaodian(char c) { if(c >= 'a' && c <= 'z' || c >= 'A' & 阅读全文
posted @ 2024-09-03 14:06
Frodnx
阅读(32)
评论(0)
推荐(0)
摘要:
代码1:剪枝,非打表 #include <bits/stdc++.h> using namespace std; int l, n; const int N = 5; int arr[N * N]; int H[N], L[N]; int dfs(int x) { if(x >= n * n) { 阅读全文
posted @ 2024-09-03 11:08
Frodnx
阅读(128)
评论(0)
推荐(0)
浙公网安备 33010602011771号