Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

想了半天,以为是能想到的最少的代码了,然后看到一个80B的

Posted by StevenLee1990 at 2015-05-28 18:59:51 on Problem 1004
小弱绞尽脑汁想到的版本(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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator