HDOJ1008】的更多相关文章

#include "iostream" using namespace std; int main() { ) { int n; cin >> n; ) break; ; ; ; ;i<n;i++) { cin >> m2; if(m2 > m1) time = time + (m2-m1)*; else if (m2 < m1) time = time + (m1-m2)*; m1 = m2; } cout << time + n…