摘要:
【题意】:输入正整数n,用0~9这10个数字不重复组成两个五位数abcde和fghij,使得abcde/fghij的商为n,按顺序输出所有结果。如果没有找到则输出“There are no solutions for N.”。这里2<=n<=79。 【分析】: 1.因为n>=2,且abcde=fgh 阅读全文
posted @ 2017-12-18 16:11
Roni_i
阅读(209)
评论(0)
推荐(0)
摘要:
Description A ring is composed of n (even number) circles as shown in diagram. Put natural numbers 1,2,3,...,n into each circle separately, and the su 阅读全文
posted @ 2017-12-18 12:46
Roni_i
阅读(310)
评论(0)
推荐(0)