社区讨论

不知道为什么WA了

P1008[NOIP 1998 普及组] 三连击参与者 2已保存回复 3

讨论操作

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

当前回复
3 条
当前快照
1 份
快照标识符
@mhjsoa02
此快照首次捕获于
2025/11/04 07:52
4 个月前
此快照最后确认于
2025/11/04 07:52
4 个月前
查看原帖
冷知识:sutraper=super+utra 玩florr的看过来!
CPP
#include<bits/stdc++.h>
using namespace std;
int main(){
	for(int i=1;i<4;i++){
		for(int n=0;n<10;n++){
			for(int t=0;t<10;t++){
				int m28=i*100+n*10+t;
				int manfrid=i*200+n*20+t*2;
				int florr=i*300+n*30+t*3;
				string sutraper=to_string(m28)+to_string(manfrid)+to_string(florr);
				if(m28>333){
					return 0;
				}
				bool booooooool=true;
				for(int a=0;i<8;i++){
					for(int b=0;b<9;b++){
						if(sutraper[a]==sutraper[b]){
							booooooool=false;
						}
					}
				}
				if(booooooool=true){
					cout<<m28<<" "<<manfrid<<" "<<florr<<endl;
				}
			}
		}
	}
	return 0;
} 

回复

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

正在加载回复...