F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_23097040_9370.cpp:41:1: error: stray '\323' in program
 有N个长宽高都为1的小立方体,把它们砌成一个长方体或正方体,能得到的最小的表面积是多少。输入数据N为不超过1000的正整数。
 ^
0_0_23097040_9370.cpp:41:1: error: stray '\320' in program
0_0_23097040_9370.cpp:41:1: error: stray '\270' in program
0_0_23097040_9370.cpp:41:1: error: stray '\366' in program
0_0_23097040_9370.cpp:41:1: error: stray '\263' in program
0_0_23097040_9370.cpp:41:1: error: stray '\244' in program
0_0_23097040_9370.cpp:41:1: error: stray '\277' in program
0_0_23097040_9370.cpp:41:1: error: stray '\355' in program
0_0_23097040_9370.cpp:41:1: error: stray '\270' in program
0_0_23097040_9370.cpp:41:1: error: stray '\337' in program
0_0_23097040_9370.cpp:41:1: error: stray '\266' in program
0_0_23097040_9370.cpp:41:1: error: stray '\274' in program
0_0_23097040_9370.cpp:41:1: error: stray '\316' in program
0_0_23097040_9370.cpp:41:1: error: stray '\252' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\304' in program
0_0_23097040_9370.cpp:41:1: error: stray '\320' in program
0_0_23097040_9370.cpp:41:1: error: stray '\241' in program
0_0_23097040_9370.cpp:41:1: error: stray '\301' in program
0_0_23097040_9370.cpp:41:1: error: stray '\242' in program
0_0_23097040_9370.cpp:41:1: error: stray '\267' in program
0_0_23097040_9370.cpp:41:1: error: stray '\275' in program
0_0_23097040_9370.cpp:41:1: error: stray '\314' in program
0_0_23097040_9370.cpp:41:1: error: stray '\345' in program
0_0_23097040_9370.cpp:41:1: error: stray '\243' in program
0_0_23097040_9370.cpp:41:1: error: stray '\254' in program
0_0_23097040_9370.cpp:41:1: error: stray '\260' in program
0_0_23097040_9370.cpp:41:1: error: stray '\321' in program
0_0_23097040_9370.cpp:41:1: error: stray '\313' in program
0_0_23097040_9370.cpp:41:1: error: stray '\374' in program
0_0_23097040_9370.cpp:41:1: error: stray '\303' in program
0_0_23097040_9370.cpp:41:1: error: stray '\307' in program
0_0_23097040_9370.cpp:41:1: error: stray '\306' in program
0_0_23097040_9370.cpp:41:1: error: stray '\366' in program
0_0_23097040_9370.cpp:41:1: error: stray '\263' in program
0_0_23097040_9370.cpp:41:1: error: stray '\311' in program
0_0_23097040_9370.cpp:41:1: error: stray '\322' in program
0_0_23097040_9370.cpp:41:1: error: stray '\273' in program
0_0_23097040_9370.cpp:41:1: error: stray '\270' in program
0_0_23097040_9370.cpp:41:1: error: stray '\366' in program
0_0_23097040_9370.cpp:41:1: error: stray '\263' in program
0_0_23097040_9370.cpp:41:1: error: stray '\244' in program
0_0_23097040_9370.cpp:41:1: error: stray '\267' in program
0_0_23097040_9370.cpp:41:1: error: stray '\275' in program
0_0_23097040_9370.cpp:41:1: error: stray '\314' in program
0_0_23097040_9370.cpp:41:1: error: stray '\345' in program
0_0_23097040_9370.cpp:41:1: error: stray '\273' in program
0_0_23097040_9370.cpp:41:1: error: stray '\362' in program
0_0_23097040_9370.cpp:41:1: error: stray '\325' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\267' in program
0_0_23097040_9370.cpp:41:1: error: stray '\275' in program
0_0_23097040_9370.cpp:41:1: error: stray '\314' in program
0_0_23097040_9370.cpp:41:1: error: stray '\345' in program
0_0_23097040_9370.cpp:41:1: error: stray '\243' in program
0_0_23097040_9370.cpp:41:1: error: stray '\254' in program
0_0_23097040_9370.cpp:41:1: error: stray '\304' in program
0_0_23097040_9370.cpp:41:1: error: stray '\334' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\303' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\275' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\304' in program
0_0_23097040_9370.cpp:41:1: error: stray '\327' in program
0_0_23097040_9370.cpp:41:1: error: stray '\356' in program
0_0_23097040_9370.cpp:41:1: error: stray '\320' in program
0_0_23097040_9370.cpp:41:1: error: stray '\241' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\304' in program
0_0_23097040_9370.cpp:41:1: error: stray '\261' in program
0_0_23097040_9370.cpp:41:1: error: stray '\355' in program
0_0_23097040_9370.cpp:41:1: error: stray '\303' in program
0_0_23097040_9370.cpp:41:1: error: stray '\346' in program
0_0_23097040_9370.cpp:41:1: error: stray '\273' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\312' in program
0_0_23097040_9370.cpp:41:1: error: stray '\307' in program
0_0_23097040_9370.cpp:41:1: error: stray '\266' in program
0_0_23097040_9370.cpp:41:1: error: stray '\340' in program
0_0_23097040_9370.cpp:41:1: error: stray '\311' in program
0_0_23097040_9370.cpp:41:1: error: stray '\331' in program
0_0_23097040_9370.cpp:41:1: error: stray '\241' in program
0_0_23097040_9370.cpp:41:1: error: stray '\243' in program
0_0_23097040_9370.cpp:41:1: error: stray '\312' in program
0_0_23097040_9370.cpp:41:1: error: stray '\344' in program
0_0_23097040_9370.cpp:41:1: error: stray '\310' in program
0_0_23097040_9370.cpp:41:1: error: stray '\353' in program
0_0_23097040_9370.cpp:41:1: error: stray '\312' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\276' in program
0_0_23097040_9370.cpp:41:1: error: stray '\335' in program
0_0_23097040_9370.cpp:41:1: error: stray '\316' in program
0_0_23097040_9370.cpp:41:1: error: stray '\252' in program
0_0_23097040_9370.cpp:41:1: error: stray '\262' in program
0_0_23097040_9370.cpp:41:1: error: stray '\273' in program
0_0_23097040_9370.cpp:41:1: error: stray '\263' in program
0_0_23097040_9370.cpp:41:1: error: stray '\254' in program
0_0_23097040_9370.cpp:41:1: error: stray '\271' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\265' in program
0_0_23097040_9370.cpp:41:1: error: stray '\304' in program
0_0_23097040_9370.cpp:41:1: error: stray '\325' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\325' in program
0_0_23097040_9370.cpp:41:1: error: stray '\373' in program
0_0_23097040_9370.cpp:41:1: error: stray '\312' in program
0_0_23097040_9370.cpp:41:1: error: stray '\375' in program
0_0_23097040_9370.cpp:41:1: error: stray '\241' in program
0_0_23097040_9370.cpp:41:1: error: stray '\243' in program
0_0_23097040_9370.cpp:43:1: error: stray '\311' in program
 设长宽高分别为L,W,H,题目要求就是L*W*H=N的情况下,2*(L*W + L*H + W*H)的最小值是多少。其中L,W,H都是自然数。不需要用数学来分析函数的极值。直接搜索即可。当L确定的情况下,问题变成了W*H = N / L为常数,求W+H+W*H的最小值的问题。枚举W即可确定H。代码如下:
 ^
0_0_23097040_9370.cpp:43:1: error: stray '\350' in program
0_0_23097040_9370.cpp:43:1: error: stray '\263' in program
0_0_23097040_9370.cpp:43:1: error: stray '\244' in program
0_0_23097040_9370.cpp:43:1: error: stray '\277' in program
0_0_23097040_9370.cpp:43:1: error: stray '\355' in program
0_0_23097040_9370.cpp:43:1: error: stray '\270' in program
0_0_23097040_9370.cpp:43:1: error: stray '\337' in program
0_0_23097040_9370.cpp:43:1: error: stray '\267' in program
0_0_23097040_9370.cpp:43:1: error: stray '\326' in program
0_0_23097040_9370.cpp:43:1: error: stray '\261' in program
0_0_23097040_9370.cpp:43:1: error: stray '\360' in program
0_0_23097040_9370.cpp:43:1: error: stray '\316' in program
0_0_23097040_9370.cpp:43:1: error: stray '\252' in program
0_0_23097040_9370.cpp:43:1: error: stray '\243' in program
0_0_23097040_9370.cpp:43:1: error: stray '\254' in program
0_0_23097040_9370.cpp:43:1: error: stray '\314' in program
0_0_23097040_9370.cpp:43:1: error: stray '\342' in program
0_0_23097040_9370.cpp:43:1: error: stray '\304' in program
0_0_23097040_9370.cpp:43:1: error: stray '\277' in program
0_0_23097040_9370.cpp:43:1: error: stray '\322' in program
0_0_23097040_9370.cpp:43:1: error: stray '\252' in program
0_0_23097040_9370.cpp:43:1: error: stray '\307' in program
0_0_23097040_9370.cpp:43:1: error: stray '\363' in program
0_0_23097040_9370.cpp:43:1: error: stray '\276' in program
0_0_23097040_9370.cpp:43:1: error: stray '\315' in program
0_0_23097040_9370.cpp:43:1: error: stray '\312' in program
0_0_23097040_9370.cpp:43:1: error: stray '\307' in program
0_0_23097040_9370.cpp:43:1: error: stray '\265' in program
0_0_23097040_9370.cpp:43:1: error: stray '\304' in program
0_0_23097040_9370.cpp:43:1: error: stray '\307' in program
0_0_23097040_9370.cpp:43:1: error: stray '\351' in program
0_0_23097040_9370.cpp:43:1: error: stray '\277' in program
0_0_23097040_9370.cpp:43:1: error: stray '\366' in program
0_0_23097040_9370.cpp:43:1: error: stray '\317' in program
R:


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 09:45:33, Gzip enabled