Aria
Linked with GitHub
# [C語言] b138. NOIP2005 1.陶陶摘苹果 ## C語言 ## AC程式碼: ``` #include<stdio.h>/* for printf and scanf */ #include<stdlib.h> int main(){ int a[100],i=0,cem=0,sum=0; for(i=0;i<10;i++){ scanf("%d",&(a[i])); } scanf("%d",&cem); sum=0; for(i=0;i<10;i++){ if(cem+30>=a[i]){ sum++; } } printf("%d\n",sum); return 0; } ``` Reference: [1] [b138. NOIP2005 1.陶陶摘苹果](https://zerojudge.tw/ShowProblem?problemid=b138)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up