| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2880 | 张弛 | 陶陶摘苹果 | C++ | Compile Error | 0 | 0 MS | 0 KB | 594 | 2019-12-07 16:40:23 |
#include <iostram> int main() { int appleh[10], benchh, taoh, bentaoh, i; benchh = 30; //板凳的高度 for (i=0; i<10; i++) //循环输入苹果的高度 { scanf("%d", &appleh[i]); } scanf("%d", &taoh); //输入淘淘的高度 bentaoh = benchh + taoh; //淘淘站在板凳上的高度 int n = 0; for (i=0; i<10; i++) //判断能否摘到苹果 { if(appleh[i] <= bentaoh) { n++; //如果能够摘到苹果计数加一 } } printf("%d\n", n); return 0; }