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 -*- | |
def converter_numero_em_romano(numero): | |
""" | |
Código construído no primeiro coding dojo realizado na UFES. | |
Data: 18/12/2010 | |
Problema: Números romanos | |
http://codingkata.org/katas/unit/caesar-lottery |
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
#!/usr/bin/env python2.7 | |
# -*- encoding:utf-8 -*- | |
class Matriz(object): | |
""" | |
Classe Matriz utilizada para resolver os 2 problemas do Dojo | |
Data: 22/01/2011 | |
Problema: Problema 28 do Projeto Euler | |
http://projecteuler.net/index.php?section=problems&id=28 |
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
#!/usr/bin/env python2.7 | |
# -*- encoding:utf-8 -*- | |
import string | |
class Encotel(object): | |
def get_number(self, x): | |
"Retorna os números equivalentes aos caracteres" | |
saida = '' | |
mapping = self.get_mapping() |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#include <assert.h> | |
int main() { | |
int h, m, s, cs; | |
while (scanf("%02d%02d%02d%02d", &h, &m, &s, &cs) != EOF) { | |
unsigned long long time = h*60*60*100 + m*60*100 + s*100 + cs; |