社区讨论
答案正确最后wa...
P1008[NOIP 1998 普及组] 三连击参与者 1已保存回复 0
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 0 条
- 当前快照
- 1 份
- 快照标识符
- @m0gh497l
- 此快照首次捕获于
- 2024/08/30 16:50 2 年前
- 此快照最后确认于
- 2024/08/30 16:55 2 年前
CPP
num=0
while True:
num+=1
numstr=str(num)+str(num*2)+str(num*3)
if numstr.count("1")==1 and numstr.count("2")==1 and numstr.count("3")==1 and numstr.count("4")==1 and numstr.count("5")==1 and numstr.count("6")==1 and numstr.count("7")==1 and numstr.count("8")==1 and numstr.count("9")==1:
print(str(num)+" "+str(num*2)+" "+str(num*3))
break
回复
共 0 条回复,欢迎继续交流。
正在加载回复...