PersonalCorpus 版 (精华区)
1127443 Big Guava ... 10302 Accepted
0:00.010 64 2002/09/28 21:16:39.750
#include "longinteger.c"
void main()
{
#ifndef ONLINE_JUDGE
freopen("c:\\0acm\\uva\\i10302","r",stdin);
freopen("c:\\0acm\\uva\\o10302","w",stdout);
#endif
struct longinteger sum, i;
int k;
while (scanf("%d\n",&k)==1) {
setoneLI(&i);
mulLI2(&i,k);
mulLI2(&i,k);
copyLI(&sum,&i);
mulLL2(&sum,&i);
addLI2(&sum,&i);
mulLI2(&i,k);
mulLI2(&i,2);
addLI2(&sum,&i);
divLI2(&sum,4,k);
printLI(&sum);
printf("\n");
}
}
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.210毫秒