首页 > 其他 > 详细

[UVa11729] Commando War

时间:2015-11-20 19:52:09      阅读:211      评论:0      收藏:0      [点我收藏+]

“Waiting for orders we held in the wood,

word from the front never came

By evening the sound of the gunfire was miles away

Ah softly we moved through the shadows, slip away through the trees

Crossing their lines in the mists in the fields on our hands and our knees

And all that I ever, was able to see

The fire in the air, glowing red, silhouetting the smoke on the breeze”

这是山人见过最诗情画意热血沸腾的UVa题目 实属难得 相见恨晚

山人不觉想起了前些天qzy学长发来的读诗录音 更生AC此题的念头 更不愿参照题解完成

今日思索多时 终于有些头绪 竟一举拿下

说到底 这一道思维题 做出来也不足为称道 只是其中有些细节可以启发思路

for(i=2;i<=n;i++){
    if( a[i-1].j > a[i].b+a[i].j ) a[i].j = a[i-1].j-a[i].b;
}

技术分享

[UVa11729] Commando War

原文:http://www.cnblogs.com/peccavi/p/4981888.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!