fork download
  1. # 遊園地
  2. T=[str(i)+'!' if str(i) in '3'or i%3==0 else str(i) for i in range(1,21)]
  3. [print(i) for i in T]
Success #stdin #stdout 0.02s 9292KB
stdin
Standard input is empty
stdout
1
2
3!
4
5
6!
7
8
9!
10
11
12!
13
14
15!
16
17
18!
19
20