也是一道AC比較高的
感覺最近只對簡單題有feel?
盯著難題看了很久我只是想到了夜宵。。
Time Limit: 1 Second Memory Limit: 32768 KB
Given an positive integer A (1 <= A <= 100), output the lowest bit of A. For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example goes like this: given A = 88, we can write A in binary form as 1011000, so the lowest bit of A is 1000, so the output should be 8. (閱讀全文…)
其實算是簡單題吧
用組數模擬下就出來了- –
哈。
The Drunk Jailer
Time Limit: 1 Second Memory Limit: 32768 KB
A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.
One night, the jailer gets bored and decides to play a game. For round 1 of the game, he takes a drink of whiskey, and then runs down the hall unlocking each cell. For round 2, he takes a drink of whiskey, and then runs down the hall locking every other cell (cells 2, 4, 6, …). For round 3, he takes a drink of whiskey, and then runs down the hall. He visits every third cell (cells 3, 6, 9, …). If the cell is locked, he unlocks it; if it is unlocked, he locks it. He repeats this for n rounds, takes a final drink, and passes out.
(閱讀全文…)
最近由於什麽日本核洩漏問題
有人網上謠傳碘鹽可以防輻射
然後就造成了各個商店卻鹽賣
導致人們不能正常的進行生活
這樣子的做法實在是太噁心了
鹽是我們生活所需要的必需品
這樣子炒上去只有便宜了奸商
而受罪的只有我們這群老百姓
其實很早就想買3DS了
但是一直是由於沒有錢而拖著
上個星期豁出去了
直接將遊戲賬號甩賣
加上自己儹得錢
入手了一個黑色的3ds 並且還有一張柴犬
大愛~ 打算玩正版也可以玩很久了呢
下面是自爆圖 (閱讀全文…)
先說一句:我不是憤青
日本的這次地震,又一次震驚了全世界。這不是我們人類所能抵擋的,在大自然強大的破壞力面前,人類哪怕預防地再好,也經不住這毀滅性的打擊。
這次地震加海嘯給日本造成了嚴重的經濟損失。希望日本能重建家園,痛失親人的那些人也能振作起來。
雖然,日本二戰時期是侵略過中國,作爲一個中國人是不應該忘記這段曆史的,但是勿忘國恥這四個字不是拿出來東叫叫,西吠吠的。那是激勵我們實現強大的精神動力! (閱讀全文…)