原创 R - Joseph

Joseph 題目描述 The Joseph’s problem is notoriously known. For those who are not familiar with the original problem: fr

原创 N - Bullseye

Bullseye 題目描述 A simple dartboard consists of a flat, circular piece of cork with concentric rings drawn on it. Dart

原创 A - stl 的 map

stl 的 map 題目描述 Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the

原创 K - next_permutation

next_permutation 題目描述 Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 i

原创 W - The Circumference of the Circle

The Circumference of the Circle 題目描述 To calculate the circumference of a circle seems to be an easy task - provided

原创 G - stl 的 優先隊列

stl 的 優先隊列 題目描述 In a speech contest, when a contestant finishes his speech, the judges will then grade his performa

原创 U - Long Distance Racing

Long Distance Racing 題目描述 Bessie is training for her next race by running on a path that includes hills so that she

原创 I - 輾轉相除法求最大公約數

輾轉相除法求最大公約數 題目描述 The least common multiple (LCM) of a set of positive integers is the smallest positive integer whi

原创 L - Delta-wave

Delta-wave 題目描述 A triangle field is numbered with successive integers in the way shown on the picture below. The

原创 V - The Fun Number System

The Fun Number System 題目描述 In a k bit 2’s complement number, where the bits are indexed from 0 to k-1, the weight o

原创 M - 枚舉答案能不能做?

M - 枚舉答案能不能做? 題目描述 The digital root of a positive integer is found by summing the digits of the integer. If the res

原创 J - Ignatius and the Princess IV

Ignatius and the Princess IV 題目描述 “OK, you are not too bad, em… But you can never pass the next test.” feng5166 say

原创 Z - A + B Problem II

A + B Problem II 題目描述 I have a very simple problem for you. Given two integers A and B, your job is to calculate th

原创 O - Dirichlet's Theorem on Arithmetic Progressions

Dirichlet’s Theorem on Arithmetic Progressions 題目描述 If a and d are relatively prime positive integers, the arithmet

原创 E - 貪心

貪心 題目描述 FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his