提交时间:2024-01-21 10:42:26
运行 ID: 37494
#include <bits/stdc++.h> using namespace std; int a[100005]; int main(){ int n; cin >> n; for (int i = 1; i <= n; ++ i) cin >> a[i]; cout << a[i] << " "; for (int i = 1; i < n; ++ i) cout << a[i + 1] - a[i] << " "; return 0; }