萌新求调红题玄一关

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

_Hzx_ @ 2024-06-08 11:46:12

通过观察样例然后得出结论样例过了但是全WA

提交记录

代码

#include <bits/stdc++.h>

using namespace std;

int k, a[11];

int main(){
    for (int i = 1; i <= 10; i++)
        scanf("%d", &a[i]);
    scanf("%d", &k);
    printf("%d\n", (a[2] - a[3]) / 10);
}

求调


by mlvx @ 2024-06-08 11:47:23

钓鱼违规吧(


by _Hzx_ @ 2024-06-08 11:48:59

@Humour_Fh 萌新不懂什么是钓鱼,是什么网络用语吗,我家没有鱼竿


by _Hzx_ @ 2024-06-08 11:49:15

数组11没开小吧


by mlvx @ 2024-06-08 11:49:29

不如直接输出5(bushi


by _Hzx_ @ 2024-06-08 11:50:30

@Humour_Fh 哦谢谢大佬指导


by _Hzx_ @ 2024-06-08 11:51:18

@Humour_Fh Link 但是只AC了两个点


by mlvx @ 2024-06-08 11:52:00

需要AC猪国杀才能AC这道题,这道题其实是黑题(


by Dream_poetry @ 2024-06-08 11:52:09

@huang_zhi_xia 不是你还真信了?用 k+30 和每个 a_i 比较就行了


by Dream_poetry @ 2024-06-08 11:52:50

@Humour_Fh 6(zqd)


by ilibilib @ 2024-06-08 11:53:11

@huang_zhi_xia 写错了吧


#incldue <bits\stdc++.h>

#define int long long

using namespace std;

int k, a[10000000000000];

int mian(){
    for (int i = 1; i <= 10; i+1)
        scanf("%d", a[i]);
    scanf(“%d”, k);
    printf(“%d\n”, (a[2] - a[3]) ➗ 10);
        return;
}

| 下一页