签名
增加 1 行删除 1 行
1这个家伙很懒,什么也没有留下1宣团:https://www.luogu.com.cn/team/140326
个人介绍
增加 33 行删除 6 行
12345194 行未改动全部展开200201202203204205206207208209210211212213214215216217218219220221222223254 行未改动全部展开478479480481[OI计算器](https://quick-math-calc.surge.sh/),[神秘链接](https://playmcjscc.pages.dev/1.8.8/),[豆包](https://www.doubao.com),[信息学奥赛一本通](https://ybt.ssoier.cn/),[NOI全国青少年信息学奥林匹克竞赛](https://www.noi.cn/),[ATCoder](https://atcoder.jp/home)头文件```#include<bits/stdc++.h>194 行未改动全部展开```cpp#include<bits/stdc++.h>typedef long long ll;using namespace std;signed main() {ios::sync_with_stdio(0);cin.tie(0), cout.tie(0);int n;cin>>n;vector<int> a(n+1,1);a[0]=a[1]=0;for(int i=2;i<=sqrt(n);i++){if(a[i]){for(int j=i*i;j<=n;j+=i){a[j]=0;}}}for(int i=2;i<=n;i++){if(a[i]) cout<<i<<" ";}return 0;}```254 行未改动全部展开return 0;}```12345194 行未改动全部展开200201202203204205206207208209210211212213214215216217218219220221222254 行未改动全部展开477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508[OI计算器](https://quick-math-calc.surge.sh/),[神秘链接](https://mcjs.link/),[豆包](https://www.doubao.com),[信息学奥赛一本通](https://ybt.ssoier.cn/),[NOI全国青少年信息学奥林匹克竞赛](https://www.noi.cn/),[ATCoder](https://atcoder.jp/home)头文件```#include<bits/stdc++.h>194 行未改动全部展开```cpp#include<bits/stdc++.h>typedef long long ll;using namespace std;bool a[1000001];signed main() {ios::sync_with_stdio(0);cin.tie(0), cout.tie(0);int n;cin>>n;for(int i=2;i<=n;i++){if(a[i]){for(int j=i*i;j<=n;j+=i){a[j]=1;}}}for(int i=2;i<=n;i++){if(!a[i]) cout<<i<<" ";}return 0;}```254 行未改动全部展开return 0;}```等级分计算```cpp#include<bits/stdc++.h>using namespace std;int main() {double a, b;int c, d, e;cout << "输入你的原等级分:";cin >> a;cout << "\n赛场平均分:";cin >> b ;cout << "\n总人数:";cin >> c ;cout << "\n你的排名:";cin >> d ;cout << "\n阙值(语言月赛60,入门赛60,基础赛120,月赛120):";cin >> e;double f = c / (1.0 + pow(10.0, (a - b) / 400.0));double g = e * (f - d) / (c - 1);int h = round(g);int i = (int)a + h;cout << fixed << setprecision(2);cout << "期望排名:" << int(f) << '\n';cout << "分数增加:" << h << '\n';cout << "新等级分:" << i;return 0;}```