#include <iostream> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { double a,b; cin>>a; while (cin>>b) { if (b==999) { printf("End of Output\n"); break; } printf("%.2f\n",(b-a)); a=b; } return 0; }
#include <iostream> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { double a,b; cin>>a; while (cin>>b) { if (b==999) { printf("End of Output\n"); break; } printf("%.2f\n",(b-a)); a=b; } return 0; }
时间: 2024-10-23 04:28:06