The Fun Number System Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 10641 Accepted: 3619 Description In a k bit 2's complement number, where the bits are indexed …
An Easy Problem! Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9115 Accepted: 2324 Description Have you heard the fact "The base of every normal number system is …
Prime Path Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 17815 Accepted: 10032 Description The ministers of the cabinet were quite upset by the message from the C…
普通筛法: 暴力寻找.. ...
青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 108538 Accepted: 21756 Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出…
反正切函数的应用 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 15514 Accepted: 5548 Description 反正切函数可展开成无穷级数,有如下公式 (其中0 <= x <= 1) 公式(1) 使用反正切函数计算PI是一种常用的方法。例如,最简单…
Biorhythms Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 130834 Accepted: 41704 Description 人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应…
T1 Vigenère密码 题目描述 Description 16 世纪法国外交家Blaise de Vigenère设计了一种多表密码加密算法——Vigenère密码。Vigenère 密码的加密解密算法简单易用,且破译难度比较高,曾在美国南北战争中为南军所广泛使用。 在密码学中,我们称需要加密的信息为明文,用 M 表示;称加密后的信息为密文,用…
Combinations Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9259 Accepted: 4259 Description Computing the exact number of ways that N things can be taken M at a ti…
Dexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But D…