这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
欢迎加入我的团队,一起讨论题目!!! 链接——[https://www.luogu.com.cn/team/76680](https://www.luogu.com.cn/team/76680)
在讨论《加入》回复:
@[WydnksqhbD](/user/1139577) 啥意思
在讨论《加入》回复:
@[timmyliao](/user/1095093) [在这里!!!](https://www.luogu.com.cn/team/76680)
在讨论《代码求调,感谢》回复:
AC ```c #include #define up(l,r,i) for(int i=l,END##i=r;i =END##i;--i) using namespace std; typedef long long i64; const int INF =2147483647; const int MAXN=1e5…
欢迎大家加入我的团队。 我开这个团队的目的,是可以让大家有什么不会的题目讨论讨论,互相帮助,希望大家能加入。 我会不定期想一些题目,或出一些比赛,大家可以积极参加。 真心希望大家参加。 [我的团队](https://www.luogu.com.cn/team/76680#member)
欢迎大家加入我的团队。 我开这个团队的目的,是可以让大家有什么不会的题目讨论讨论,互相帮助,希望大家能加入。 我会不定期想一些题目,或出一些比赛,大家可以积极参加。 真心希望大家参加。 [我的团队](https://www.luogu.com.cn/team/76680#member)
在讨论《60pts求调》回复:
关键代码 ```c int first=-1; int main(){ string str1,str2,str3=""; char ch; int flag=0,num=0; cin>>str1; transform(str1.begin(),str1.end(),str1.begin(),::tolower); c…
在讨论《求助!》回复:
AC ```c #include #include #define AUTHOR "HEX9CF" using namespace std; const int N = 1e3 + 5; const char t[10][5][3] = {{ 'X', 'X', 'X', 'X', '.', 'X', 'X', '.'…
在讨论《help》回复:
AC ```c #include using namespace std; const int N = 35; int n, m, x, y; long long dp[N][N]; bool vis[N][N]; int X[8] = {-2, -1, 1, 2, 2, 1, -1, -2}; int Y[8] =…
在讨论《70,3超时,求优化》回复:
AC ```c #include using namespace std; int first=-1; int main(){ string str1,str2,str3=""; char ch; int flag=0,num=0; cin>>str1; transform(str1.begin(),str1.end(…
在讨论《样例过了,0分求助!!!》回复:
@[ZBXALQX](/user/1070547) 我用的是DP
在讨论《样例过了,0分求助!!!》回复:
AC ```c #include #define ll long long #define endl '\n' using namespace std; const int N=1e5+5; int m[1005][1005]; int dp[1005]; int main() { ios_base::sync_wit…
在讨论《0分求助,样例输出错误,宣3到5关》回复:
AC ```c #include using namespace std; int n,m,x,y; int hor[405][405]; bool vis[405][405]; int dx[]={1,2,-1,-2,-2,-1,1,2}; int dy[]={2,1,2,1,-1,-2,-2,-1}; void b…
在讨论《悬赏关注》回复:
AC ```c #include #include using namespace std; typedef long long ll; const int N = 1e6 + 10; int n; int X[N > 1; build(l, mid, lson); build(mid + 1, r, rson); }…
在讨论《40分,WA求助》回复:
AC ```c #include using namespace std; int n, m, t, sx, sy, fx, fy; int vis[10][10]; //标记 int mp[10][10]; //障碍物位置 int ans = 0; int xx[] = { 1,0,-1,0 }; int yy[]…
在讨论《蒟蒻20分求调》回复:
AC ```c //在这里插入代码片//此行网卡去不掉,请原谅 #include using namespace std; int first=-1; int main(){ string str1,str2,str3=""; char ch; int flag=0,num=0; cin>>str1; transfor…
在讨论《P5638 0分求助》回复:
AC ```c #include #include using namespace std; #define Max 1000001 typedef long long int ll; ll a[Max]; ll sum[Max]; ll M=-Max; int main() { ios::sync_with_stdi…
在讨论《大佬救命!84!》回复:
这题可以看出来,要买所有的物品,把物品看做点,优惠看做边,然后建边,求一次最小生成树再加上第一件的A元就行了,但是打了半天就只有90分,记得还有判断优惠的价格可能比A大,所以在读入的时候得判断一下 代码: AC ```c #include #include #include #include #include #inc…
在讨论《前一半AC后一半RE是怎么回事》回复:
AC ```c #include #include #include using namespace std; typedef long long LL; const int MAX = 500005 ; int n ; LL a[MAX] ; LL b[MAX] ; LL ans = 0 ; void merge_s…
在讨论《样例已过。WA0求调》回复:
AC ```c #include using namespace std; #define int long long #define INF (int)(5e10+233) #define gc() getchar() #define pc(a) putchar(a) #define MAXN (int)(5e4+5…
在讨论《#1超时了,求助!》回复:
AC(经供参考) ```c #include using namespace std; int main() { int num, res = 0; // res 初始 为 0 cin >> num; while (num) { // 如果是最后一位是 0, res 的结果就一直是 0 (res = 0 * 10 +…
在讨论《10pts,求助!!!》回复:
```c #include using namespace std; int n,m,ans; char a[1007][1007]; void judr(int i,int j){ if(j+3 =1) if(a[i][j]=='h'&&a[i][j-1]=='e'&&a[i][j-2]=='h'&&a[i][j-3…
在讨论《求助》回复:
AC(更简单) ```c #include #include #include using namespace std; void beford(string in,string after){ if (in.size()>0){ char ch=after[after.size()-1]; cout >inord;c…
在讨论《关于这道题的难度》回复:
@[hsfzcjx](/user/826079) 有道理,我很不明白为什么那些人要使一些题目降级, ~~水一道紫题不香吗?~~
在讨论《WA求助!!!》回复:
题目分析 一道简单的 递推题 一次可以走一级或两级阶梯,(突然想起《少年班》这部电影里那个人拿着个乌龟壳就算出来了…)首先我们来推一下递推式: 0级阶梯: 零种 一、1级阶梯: 1 共一种 二、2级阶梯: 1 1 2 共两种 三、3级阶梯: 1 1 1 1 2 2 1 共三种 四、4级阶梯 1 1 1 1 1 1 2…
在讨论《15分求助(哭。。。)》回复:
1.对于一个字符串进行操作,首先输入这个字符串,判断里面是否是.运算符或者是/运算符,因为这两种运算符操作起来要读取两个数值 2.设置一个翻转数组的change函数,去除前导0 3.然后对字符串进行操作,如果这个字符串是一个整数或者是%运算符,那么从字符串a中读取一个整数,然后放到change函数里改变,再将这个数直接…
在讨论《哪位大佬帮我看看AC了一个点!!!必关》回复:
AC ```c #include using namespace std; long long x,l,r,mid; int main(){ cin >> x; l=0; r=100001; while (r-l>1){ mid=(l+r)>>1; if (mid*mid*mid<=x) l=mid; else r=m…