模拟
文章平均质量分 65
普通网友
这个作者很懒,什么都没留下…
展开
-
1099 堆积木
题目链接 题目描述 小明的侄子要过生日了,小明买了一套儿童积木送他。这套积木由N个边长为1厘米的正方体小块组成,小明想把这些小块堆成一个大的矩形方体,然后将整个方体包裹上漂亮的包装纸,请问小明最少需要多少平方厘米的包装纸即可? 输入格式 输入的第一行为一个正整数C,表示测试样例的组数。 每组输入是一个正整数N(1 输原创 2014-02-27 15:07:34 · 677 阅读 · 0 评论 -
Secret Number
题目链接 Description 有一天, KIKI 收到一张奇怪的信, 信上要KIKI 计算出给定数各个位上数字为偶数的和. eg. 5548 结果为12 , 等于 4 + 8 KIKI 很苦恼. 想请你帮忙解决这个问题. Input 输入数据有多组,每组占一行,只有一个数字,保证数字在INT范围内.原创 2014-03-05 21:17:08 · 718 阅读 · 0 评论 -
Calculate S(n)
题目链接 Problem Description Calculate S(n). S(n)=13+23 +33 +......+n3 . Input Each line will contain one integer N(1 Output For each case, output the last four digh原创 2014-03-05 21:22:55 · 498 阅读 · 0 评论 -
Just a Numble
题目链接 Problem Description Now give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and al原创 2014-03-05 21:26:02 · 490 阅读 · 0 评论 -
Optimal Parking
题目链接 #include #include using namespace std; int a[105]; int main() { int t,i,sum; cin>>t; while(t--) { sum=0; int n; cin>>n; for(i=0;i<n;i++)原创 2014-03-12 21:01:45 · 441 阅读 · 0 评论 -
Shopaholic
点击打开链接 #include #include using namespace std; int a[20005]; int main() { int t; cin>>t; while(t--) { int n; cin>>n; int sum=0; for(int i=0;i<原创 2014-03-12 21:04:20 · 414 阅读 · 0 评论 -
Gravity Flip
A. Gravity Flip time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Chris is bored during his physics lessons (too easy), so he原创 2014-03-25 11:02:26 · 599 阅读 · 0 评论 -
0or1
题目要求: S(n)=T(1)+T(2)+......+T(n); T(n)等于n的所有约数之和。 例:T(3)=1+3;T(4)=1+2+4. 输出S(n)%2,结果只有0和1两种情况。 #include using namespace std; int main() { int t; scanf("%d",&t); while(t--) {原创 2014-03-25 11:10:24 · 772 阅读 · 0 评论