自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 2021-11-01输入n(n<1000),并输入n 个学生的分数(百分制,整数,0-100),统计哪个分数出现次数最多,如有多个并列,从小到大输出。

#include <iostream> using namespace std; int main() { int m, n, x, count = 1; int k, temp, maxcount = 0; cin >> n; int a[1000] = {0}; int b[101] = {0}; for (int i = 0; i < n; i++) { cin >> x; a[i] = x; } for (int i = 0; i.

2021-11-01 09:03:21 815

原创 2021-10-19

#include<iostream> #include<iomanip> #include<cmath> using namespace std; int main() { double x; while (cin >> x) { double sum = 1,N = 1 ,d = 1 ; int flag = 1; while (1.00 /d * pow(x, 1.00 * N) >= 1e-6) { sum += 1.0.

2021-10-19 19:08:21 112

原创 今天想了好久的一道题

#include <iostream> using namespace std; int main() { int n; while (cin >> n && n) { if (n % 7 == 0) { cout << "Yes" << "\n"; continue; } else while (n) { if (n % 10 == 7) { cout << "Yes" <.

2021-10-18 20:15:57 113

原创 字符三角形ZJUToj

#include <iostream> using namespace std; int main(){ char ch; int i,n; while(cin >>ch>>n) for(int i=1;i<=n;i++ ){ int j=1; for(int s=n-1;s>=i;s--){ cout <<" "; } while( j<=2*i-1){ cout << ch ; j+=.

2021-10-18 20:08:11 185

原创 2021-10-14

课后作业 #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { int de, flag, i, n; double item, s; de = 1; flag = -1; s = 1; for (i = 1;; i++) { de *= i; item = flag * 1.0 / de; s += i...

2021-10-14 21:43:30 102

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除