| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
想了半天,以为是能想到的最少的代码了,然后看到一个80B的
小弱绞尽脑汁想到的版本(148K,0ms,107B):
#include<stdio.h>
main() {
float s,n,i=0;
while(i++<12)scanf("%f",&n),s+=n;
printf("$%.2f",s/12);
}
前几天一个叫wwtdsg的大神写了80B的代码。
请教大家在保证时间的基础上怎么优化代码,使得内存或者代码长度尽可能低,有什么策略?
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator