SPOJ

#400 往きて帰りし暗号化

SPOJ "To and Fro"から和訳。 SPOJ Problem Set (classical) 400. To and Fro Problem code: TOANDFRO MoとLarryは手紙を暗号化する方法を考えました。まず、ふたりはお互いの間で通用する秘密の数字を決めて、メッセージをその数字分の縦列に分割して書きま…

#1. Life, the Universe, and Everything

いちおう訳しておく。 Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in th…

先生とユリィカとりんご算

かんたんかんたん? 54. Julka Problem code: JULKAJulka surprised her teacher at preschool by solving the following riddle: ユリィカが算数クイズをとても早く解くのを見て、幼稚園の先生は驚きました。その算数クイズがこちらです;Klaudia and Natal…

https://www.spoj.pl/problems/ADDREV/ 問題文を翻訳。 42. Adding Reversed Numbers/裏向き数字の足し算 The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dra…

素数を求めよ

https://www.spoj.pl/problems/PRIME1/を考えてた。 Pythonで提出できるから、いちど書いてから、もういちど書き直したのがこれ。 けっこう綺麗にかけた? #!/usr/bin/env python import math def main(): t=input() #何組の数字が入ってくるのか L=[] #最大…