a109: 123,True or False
Tags :
Accepted rate : 134人/150人 ( 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
1771
1551753-5@g.... (呂政恆S1E11)
a109
思路
31 2025-01-24 15:35