摘要: #include <iostream>using namespace std;int main() { int n, k; cin>>n>>k; if( k > n ) n = k; n *= 2; if( n % k == 0) cout<<n/k<<endl; else cout<<(n/k + 1)<<endl; return 0;}这个代码是看discuss的,为什么总可以把N块要两面个煎一次的牛扒,看成2N块只需要煎一面的牛扒呢?#include <iostream>using na 阅读全文
posted @ 2011-07-26 17:25 DOF_KL 阅读(155) 评论(0) 推荐(0) 编辑