孩子刷红题崩溃了99孩子吧

P1046 [NOIP2005 普及组] 陶陶摘苹果

NovaLYW @ 2021-10-07 09:55:42

每一次交上去都在不同的点RE...甚至还会CE...

#include <iostream>
#include <cstdio>
using namespace std;
int a[11], m, n = 0;

int main() {

    for (int i = 1; i <= 10; i++)
        scanf("%d", a + i);
    scanf("%d", &m);
    for (int i = 1; i <= 10; i++)
        if (a[i] <= m + 30)
            n++;
    printf("%d", n);
    return 0;
}

by 王君诺 @ 2021-10-07 09:56:19

评测机的问题


by __BAI__ @ 2021-10-07 09:56:24

@NovaLYW 评测机炸了,不是你的错


by 123hh2 @ 2021-10-07 09:56:31

洛谷炸了,等会再交题


by ·糯· @ 2021-10-07 10:00:45

评测姬爆了


by _WKH_ @ 2021-10-07 10:01:06

确实是的


by NovaLYW @ 2021-10-07 10:32:31

谢谢谢谢o


by the_heir_of_Rome @ 2021-11-24 22:20:21

# include <iostream>
using namespace std ;
int main()
{
    int num[10] ;
    int high = 0 , sum = 0 ;
    for(int i = 0 ; i < 10  ; i++)
    {
        cin >> num[i] ;
    }
    cin >> high ;
    for(int i = 0 ; i < 10 ; i++)
    {
        if(num[i] <= high + 30)
        {
            sum++ ;
        }
    }
    cout << sum <<endl ;
    return 0 ;
}

by the_heir_of_Rome @ 2021-11-24 22:20:43

我的ac了


by the_heir_of_Rome @ 2021-11-24 22:21:37

供参考


|