|
|
|
|
|
摘要:
#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_莹
阅读(337)
推荐(0)
编辑
摘要:
#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_莹
阅读(177)
推荐(0)
编辑
摘要:
#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_莹
阅读(99)
推荐(0)
编辑
摘要:
#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_莹
阅读(120)
推荐(0)
编辑
摘要:
#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_莹
阅读(587)
推荐(0)
编辑
摘要:
#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_莹
阅读(126)
推荐(0)
编辑
摘要:
#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_莹
阅读(112)
推荐(0)
编辑
摘要:
#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_莹
阅读(131)
推荐(0)
编辑
摘要:
#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_莹
阅读(212)
推荐(0)
编辑
摘要:
#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_莹
阅读(203)
推荐(0)
编辑
|
|