blob: 6a26b93ce9899cdb4a88a0af58fe78d5a666ae5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
(let ((tests (read)))
(dotimes (i tests)
(let ((n (read)))
(if (= n 0)
(format t "1 0 0~&")
(multiple-value-bind (d m) (truncate (1- n) 26)
(format t (cond ((< m 2) "~a 0 0~&")
((< m 10) "0 ~a 0~&")
(t "0 0 ~a~&"))
(expt 2 d)))))))
|