#1910: 這題題意不清!!!

#### terry0412 (Terry)

School : 國立聯合大學
ID : 6576
2015-07-21 21:28:40
b138. NOIP2005 1.陶陶摘苹果 -- | From: [125.224.87.57] | Post Date : 2009-05-05 20:14

#1911: Re:這題題意不清!!!

#### terry0412 (Terry)

School : 國立聯合大學
ID : 6576
2015-07-21 21:28:40
b138. NOIP2005 1.陶陶摘苹果 -- | From: [125.224.87.57] | Post Date : 2009-05-05 20:17

#include <iostream>

using namespace std;

int main()
{
int i, towtow, count;
int apple[10];
//while(true) { 這邊不加才正確AC
for(i = 0; i < 10; i++)
cin >> apple[i];
cin >> towtow;

towtow += 30, count = 0;

for(i = 0; i < 10; i++)
if (towtow >= apple[i])
count++;

cout << count << endl;
//}
return EXIT_SUCCESS;
}

#3163: Re:這題題意不清!!!

#### s89162504 (奕(25th))

School : 國立新竹高級中學
ID : 8643
2019-08-25 11:42:46
b138. NOIP2005 1.陶陶摘苹果 -- | From: [218.168.202.173] | Post Date : 2010-01-01 22:28

#include

using namespace std;

int main()
{
int i, towtow, count;
int apple[10];
//while(true) { 這邊不加才正確AC
for(i = 0; i < 10; i++)
cin >> apple[i];
cin >> towtow;

towtow += 30, count = 0;

for(i = 0; i < 10; i++)
if (towtow >= apple[i])
count++;

cout << count << endl;
//}
return EXIT_SUCCESS;
}

#3834: Re:這題題意不清!!!

#### qwe98734 (不好吧)

School : 國立內壢高級中學
ID : 10682
2018-05-21 14:35:19
b138. NOIP2005 1.陶陶摘苹果 -- | From: [125.228.44.26] | Post Date : 2010-06-06 01:44

#include

using namespace std;

int main()
{
int i, towtow, count;
int apple[10];
//while(true) { 這邊不加才正確AC
for(i = 0; i < 10; i++)
cin >> apple[i];
cin >> towtow;

towtow += 30, count = 0;

for(i = 0; i < 10; i++)
if (towtow >= apple[i])
count++;

cout << count << endl;
//}
return EXIT_SUCCESS;
}

d511說輸入有5行  讓我以為 一次測資有5行

ZeroJudge Forum