a109: 123,True or False
Tags :
Accepted rate : 124人/140人 ( 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
1616
1652401-2@g.... (P6D14林建壹)
a109
a019
94 2024-06-07 18:47
1606
2158319-6@g.... (P6A37葉穎臻)
a109
123, True or False
98 2024-05-29 08:45