摘要:
An array of size n ≤ 10 6 is given to you. There is a sliding window of size k which is moving from the very left of the array to the ... 阅读全文
摘要:
Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem wit... 阅读全文
摘要:
Terrible SetsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 5466 Accepted: 2792DescriptionLet N be the set of all natural... 阅读全文
摘要:
If you think codes, eat codes then sometimes you may get stressed. In your dreams you may see huge codes, as I have seen once. Here is... 阅读全文
摘要:
The group of Absurd Calculation Maniacs has discovered a great new way how to count. Instead of using the ordinary decadic numbers, th... 阅读全文
摘要:
Dr. Mob has just discovered a Deathly Bacteria. He named it RC-01. RC-01 has a very strange reproduction system. RC-01 lives exactly x... 阅读全文
摘要:
给出一个数N,输出小于等于N的所有数,两两之间的最大公约数之和。相当于计算这段程序(程序中的gcd(i,j)表示i与j的最大公约数):G=0;for(i=1;i#include#include#include#include#include#include#inclu... 阅读全文
摘要:
Find the result of the following code:long long pairsFormLCM( int n ) { long long res = 0; for( int i = 1; i #include#include#in... 阅读全文
摘要:
求高精度浮点数a%b.......(想知道这个题目点进来 会是什么感受)#include#include#include#include#include#include#include#include#include#include#define maxn 10000... 阅读全文
摘要:
I was trying to solve problem '1234 - Harmonic Number', I wrote the following codelong long H( int n ) { long long res = 0; for(... 阅读全文
摘要:
Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states:Every even integer,... 阅读全文
摘要:
StepsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8219 Accepted: 3747DescriptionOne steps through integer points of the... 阅读全文
摘要:
Sigma function is an interesting function in Number Theory. It is denoted by the Greek letter Sigma (σ). This function actually denote... 阅读全文
摘要:
It's said that Aladdin had to solve seven mysteries before getting the Magical Lamp which summons a powerful Genie. Here we are concer... 阅读全文
摘要:
Problem 2261 浪里个浪 Accept: 253 Submit: 797Time Limit: 1500 mSec Memory Limit : 32768 KB Problem DescriptionTonyY是一个喜欢到处浪的男人,他的梦想是... 阅读全文
摘要:
I - Cinema in AkibaCinema in Akiba (CIA) is a small but very popular cinema in Akihabara. Every night the cinema is full of people. Th... 阅读全文
摘要:
KidnappingBerland's Police has a serious problem. A foreign ambassador arrived to Berland with an important mission, and his daughter ... 阅读全文
摘要:
632-掷骰子内存限制:64MB 时间限制:3000ms Special Judge: Noaccepted:9 submit:54题目描述:小明有m个骰子,小红有n个骰子。每一个骰子都是标准六面骰子。他们分别掷出自己的骰子,如果小明的点数和大,则小明胜;否则小红胜。... 阅读全文