社区讨论

帮我看看骗分代码为什么全RE啊

P11229[CSP-J 2024] 小木棍参与者 3已保存回复 2

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
2 条
当前快照
1 份
快照标识符
@m2qvg3va
此快照首次捕获于
2024/10/27 08:48
去年
此快照最后确认于
2025/11/04 15:57
4 个月前
查看原帖
CPP
#include<bits/stdc++.h>
using namespace std;
int main() {
	int a,b[100005],h,hh;
	cin>>a;
	for(int i=1 ; i<=a ; i++){
		cin>>b[i];
		h=(b[i]-1)/7;
		if(b[i]%7==1){
			cout<<10;
			b[i]=b[i]+1;
			for(int i=1 ; i<=h-1 ; i++){
				cout<<8;
			}
		}
		else{
			hh=b[i]/7;
			for(int i=1 ; i<=hh ; i++){
				cout<<8;
			}
		}
	}
    return 0;
}

```骗分代码为什么不对呢

回复

2 条回复,欢迎继续交流。

正在加载回复...