• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






yogurt_莹

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
1 2 3 4 下一页

2018年10月7日

2024.C语言合法标识符
摘要: #include<stdio.h> int main(){ int n,a[100]; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",a[i]); int flag,x=0,y=0; if(a[0]>'a'&&a[0]<'z'||a[0]>'A'&& 阅读全文
posted @ 2018-10-07 13:51 yogurt_莹 阅读(350) 评论(1) 推荐(0)
 
2023.求平均成绩
摘要: #include<stdio.h> #include<string.h> double student[55],subject[9],sore[55][9]; int main(){ int m,n; while(scanf("%d%d",&m,&n)!=EOF){ for(int i=0;i<n; 阅读全文
posted @ 2018-10-07 13:50 yogurt_莹 阅读(180) 评论(0) 推荐(0)
 
2022.海选女主角
摘要: #include<iostream> #include<cmath> int main(){ int n,m; long a[100][100]; while(scanf("%d%d",&n,&m)!=EOF){ int max=0,count1=0,count2=0; for(int i=1;i< 阅读全文
posted @ 2018-10-07 13:49 yogurt_莹 阅读(106) 评论(0) 推荐(0)
 

2018年10月2日

2021.发工资咯:)
摘要: #include<cstdio> #include<iostream> using namespace std; int main(){ int n; while(scanf("%d",&n),n){ int d,ans=0; for(int i=0;i<n;i++){ scanf("%d",&d) 阅读全文
posted @ 2018-10-02 23:08 yogurt_莹 阅读(124) 评论(0) 推荐(0)
 
2020.绝对值排序
摘要: #include<stdio.h> int main(){ int n,a[100]; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d",a[i]); for(int i=0;i<n;i++) { if(a[i]<0)a[i]=-a[i]; else a 阅读全文
posted @ 2018-10-02 22:46 yogurt_莹 阅读(606) 评论(0) 推荐(0)
 
2019.数列有序!
摘要: #include<stdio.h> int main(){ int n,x,a[100],i,j; while(scanf("%d%d",&n,&x)&&(n||x)){ for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++){ if(x<a[i]) 阅读全文
posted @ 2018-10-02 14:50 yogurt_莹 阅读(127) 评论(0) 推荐(0)
 
2018.母牛的故事
摘要: #include<stdio.h> int main(){ int f[50],i,n; while(scanf("%d",&n)!=EOF){ f[1]=1;f[2]=2;f[3]=3; for(i=4;i<=n;i++){ f[i]=f[i-3]+f[i-1]; } printf("%d\n", 阅读全文
posted @ 2018-10-02 14:28 yogurt_莹 阅读(114) 评论(0) 推荐(0)
 
2017.字符串统计
摘要: #include<iostream> using namespace std; int main(){ int n,i,s; char x; cin>>n; getchar(); for(i=0;i<n;i++){ s=0; while((x=getchar())!='\n') if(x>='0'& 阅读全文
posted @ 2018-10-02 11:18 yogurt_莹 阅读(134) 评论(0) 推荐(0)
 
2016.数据的交换输出
摘要: #include <stdio.h> int main() { int n,i,t,min,k,j; while(scanf("%d",&n)&&n!=0) { int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n-1;i++) for( 阅读全文
posted @ 2018-10-02 11:07 yogurt_莹 阅读(216) 评论(0) 推荐(0)
 
2015.偶数求和
摘要: #include<stdio.h>int main(){ int m,n,i,line[104],s,j,h; int aver1,aver2; while(scanf("%d%d",&n,&m)!=EOF) { line[0]=2; for(i=1;i<n;i++) line[i]=line[i- 阅读全文
posted @ 2018-10-02 11:01 yogurt_莹 阅读(206) 评论(0) 推荐(0)
 
1 2 3 4 下一页