How memory works? / 傻子才相信概率。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《一个《OJ 运维模拟器》,你能坚持到 2026 年不倒闭吗?》回复:
qp
你的两个表示彗星、队伍的循环计数器初始化应从 $1$ 开始。 以及,强转后判断 $\mathrm{mod}\ 47$ 的结果时,应当注意使用 `(int)` 时是转换为大写字母的 ASCII,还需要 $-64$ 才是正确的题目中定义的码表。
在讨论《使用 cctype 中的函数,Why WA?》回复:
@[ADay](luogu://user/312393) thx!
在讨论《使用 cctype 中的函数,Why WA?》回复:
@[ForgottenCat](luogu://user/1303083) Still WA.
在讨论《使用 cctype 中的函数,Why WA?》回复:
@[ForgottenCat](luogu://user/1303083) thx,可以壶关嘛?
rt. ```cpp #include using namespace std; int main(){ char name[105]; int len=strlen(name); cin>>name; for(int i=0;i<len;i++){ if(islower(name[i])) name[i]=toupp…
在讨论《【LGR-271-Div.3】洛谷基础赛 #31 & 中国新年跨年赛 赛时答疑帖》回复:
RP++,好运+=INT_MAX。
在讨论《LGR-264、MX-X24 作弊名单》回复:
qp
在讨论《Why 60pts?(玄壶)》回复:
@[Ethan0824](luogu://user/1077096) thx,已关,壶关嘛。
rt. ```cpp #include using namespace std; int main(){ long long x,y; char a,b; cin>>x; cin>>a>>b; if((a=='B'&&b!='C')||(a!='C'&&b=='B')) y=8; if((a=='C'&&b!='B')…
在讨论《进食后人》回复:
@[Calamity_Link](luogu://user/1842850) 这里指 C/C++,不好意思没说清楚。
若你使用通项公式模拟,请检查你的公式写对了吗: $$\mathrm{Fib}(n)=\frac{(\frac{1+\sqrt{5}}{2})^n-(\frac{1-\sqrt{5}}{2})^n}{\sqrt{5}}$$
注意题目中 $a,b,c$ 的单位均为 $\mathrm{cm}$。故模拟后的面积单位为 $\mathrm{cm}^2$。 而题目中所说的单位为 $\mathrm{m}^2$。注意换算,进率为 $10^4$。 还有,**好好看图!**
在讨论《虽过但问》回复:
@[Fertior_X](luogu://user/1236863) 噢,写错了,因为我刚才水咕值时看到一个保留 $5$ 位的。()
在讨论《虽过但问》回复:
@[Fertior_X](luogu://user/1236863) thx,已关。
在讨论《虽过但问》回复:
@[Fertior_X](luogu://user/1236863) soz,是我叙述不严谨,我的第一个代码中 `cout<<fixed<<setprecision(5)<<...` 加了 `std::fixed()`。
在讨论《【WC 奖项已经导入】NOIWC 2026 游记征集》回复:
hp
在讨论《【LGR-264】赛后总结帖》回复:
qp
如果你是分开判断闰年的 $12$ 个月天数、平年的 $12$ 个月天数,记得在闰年判断部分加入除二月外其他月份的 if 语句,否则你会 78pts。 **还有,你的闰年函数写对了吗?** ```cpp bool leap(int n){ if((n%4==0&&n%100!=0)||n%400==0) return t…
写完删除后缀后(暴力过的): ```cpp if(a[len_a-2]=='e'&&a[len_a-1]=='r') a[len_a-2]=a[len_a-1]='\0'; if(a[len_a-2]=='l'&&a[len_a-1]=='y') a[len_a-2]=a[len_a-1]='\0'; if(a[len…
在讨论《样例未过,20pts 求条》回复:
@[bilibili_xigua](luogu://user/978977) thx!
rt,代码如下: ```cpp #include using namespace std; int main(){ int sch[15],rev[15]; for(int i=0;i >sch[i]>>rev[i]; int min_val=sch[0]+rev[0]; for(int i=1;i<=6;i++) m…
rt,代码: ```cpp #include using namespace std; int main(){ int sch[15],rev[15]; for(int i=0;i >sch[i]>>rev[i]; int min_val=sch[0]+rev[0]; for(int i=1;i<=6;i++) min…
在讨论《(二金三银四铜)2026 年米兰科尔蒂纳冬奥会专题讨论帖》回复:
qp 祝中国队加油!
$\mathrm{T4}$ 要求保留 $6$ 位有效数字,并非 $166.666667\ \mathrm{mL}$,而是 $166.667\ \mathrm{mL}$。 ~~(前置知识一则?)~~ 看看你的 $\mathrm{T8}$,若用代码计算,温馨提示检查一下是 ```const int pi=3.141593`…
在讨论《Why 93pts? (T8)》回复:
**玄壶关!!!**
T8 出错,但是不会改,rt。 Code: ```cpp #include using namespace std; const int pi=3.141593; int main(){ int q; cin>>q; if(q==1) cout<<"I love Luogu!"; if(q==2) cout<<"6 4…