This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Leia um valor inteiro. A seguir, calcule o menor número de notas possíveis (cédulas) no qual o valor pode ser decomposto. As notas consideradas são de 100, 50, 20, 10, 5, 2 e 1. A seguir mostre o valor lido e a relação de notas necessárias. | |
Entrada | |
O arquivo de entrada contém um valor inteiro N (0 < N < 1000000). | |
Saída |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import telepot | |
from telepot.loop import MessageLoop | |
def handle(msg): | |
if msg["text"] == '/ban': | |
bot.kickChatMember(msg["chat"]["id"], msg["reply_to_message"]["from"]["id"]) | |