摘要: 第四次个人赛 D. Santa's Bot 概率+数学题,算出公式即可。注意一定要边乘边取模。然后那个快速幂函数不要忘了。 int ksm(int x, int cnt){ int res=1; x %= mod; while(cnt>0){ if(cnt & 1){ res = res * x % 阅读全文
posted @ 2026-01-24 17:57 Yxxxi 阅读(4) 评论(0) 推荐(0)
摘要: 一:签到(语法基础) 7-1 #include<bits/stdc++.h> using namespace std; int main(){ int n; double x; cin>>n>>x; cout<<fixed<<setprecision(2)<<n*x*0.1<<'\n'; retur 阅读全文
posted @ 2025-11-22 22:45 Yxxxi 阅读(226) 评论(0) 推荐(2)