摘要:
A. Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Theatre Square in the c 阅读全文
摘要:
A. The Meaningless Game time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Slastyona and her 阅读全文
摘要:
#include<stdio.h>#include<math.h>#define M 10^5+10int p[1000000],a[10000001],t=0;int prime(int n){ int i,q; q=(int)sqrt(n); for(i=0;p[i]<=q&&t;i++) if 阅读全文
摘要:
You are given several queries. In the i-th query you are given a single positive integer ni. You are to represent ni as a sum of maximum possible numb 阅读全文
摘要:
C - Maximum of Maximums of Minimums You are given an array a1, a2, ..., an consisting of n integers, and an integer k. You have to split the array int 阅读全文