SDUT测试赛――Problem F

原题:

题目描述

       It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.
      Given a year number, find the minimum year number which is strictly larger than the given one and has only distinct digits.

输入

 There are multiple test cases.
Each test case contains a single line contains integer y (1000
分享至
一键收藏,随时查看,分享好友!
0人
了这篇文章
类别:未分类┆阅读( 0)┆评论( 0) ┆ 返回博主首页┆ 返回博客首页
上一篇 SDUT――打印数字图形 下一篇 SDUT――Mirror, Mirror on the Wall 解题报告

你可能感兴趣的:(java,开发技术)