Update: Rename folder name to XSMOJ

This commit is contained in:
2025-02-14 02:44:20 +00:00
parent 394e431a4a
commit c8863a5850
243 changed files with 11 additions and 39 deletions

25
XSMOJ/小码君刷题.cpp Normal file
View File

@ -0,0 +1,25 @@
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <cmath>
using namespace std;
int main(){
int a,b,c,d,e,sum=0;
cin >>a>>b>>c>>d>>e;
for(int i=0;i<a;i++){
if(i>=1 && i%c==0){
b+=d;
}
sum+=b;
}
cout <<sum<<endl;
if(sum>=e){
cout <<"Yes";
}
else{
cout <<"No";
}
return 0;
}