- 博客(8)
- 收藏
- 关注
原创 【基础】质因子
#include <bits/stdc++.h>using namespace std;int main(){ int y=2,s; cin>>s; while(s!=1) { if(s%y==0) { cout<<y<<endl; s=s/y; } else { y++...
2021-12-14 19:36:05
1037
原创 C++高尔夫球
#include <bits/stdc++.h>using namespace std;int main(){ int n,x,a=0,b=0,c=0; cin>>n; while(1) { cin>>x; if(x==-1) { break; } if(x<n) { c++;...
2021-12-14 19:35:24
993
原创 【基础】小青蛙回来了
#include <bits/stdc++.h>using namespace std;int main(){ int n,m,ts=0,p=0,h; cin>>m>>n>>h; while(1) { ts++; p+=m; if(p>=h)break; p-=n; } cout<<ts; return 0;}...
2021-12-14 19:33:24
1921
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人