a109: 123,True or False
Tags :
Accepted rate : 127人/143人 ( 89% ) [非即時]
評分方式:
Strictly

最近更新 : 2022-08-18 02:01

Content

Given an integer N, print True if the digits 1, 2, and 3 exist in the integer N else print False.

Input

An integer number

Output

True or False

Sample Input #1
1213215648765446231356
Sample Output #1
True
Sample Input #2
999999999998412
Sample Output #2
False
Sample Input #3
94542122212166889798
Sample Output #3
False
Sample Input #4
152535
Sample Output #4
True
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (33%): 1.0s , <1K
不公開 測資點#1 (33%): 1.0s , <1K
不公開 測資點#2 (34%): 1.0s , <1K
Hint :

You could use the "find()" function in a string.

Tags:
出處:
[管理者:
kichan@g.pui... (陳嘉賢CHAN KA IN)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」