···1#include <iostream>
2-#include <fstream>
34using namespace std;
56int main() {
7- ifstream input("input");
8 int previous = 2147483647, current = 0;
9 int total = 0;
1011- while (input >> current) {
12 if (current > previous) {
13 total++;
14 }
···1#include <iostream>
023using namespace std;
45int main() {
06 int previous = 2147483647, current = 0;
7 int total = 0;
89+ while (cin >> current) {
10 if (current > previous) {
11 total++;
12 }
+1-2
2021/1/p2.cpp
···4using namespace std;
56int main() {
7- ifstream input("input");
8 int total = 0;
9 int a = 0, b = 0, c = 0, d = 0;
10 int rownumber = 0;
1112- while (input >> d) {
13 if (rownumber >= 3) {
14 if (a + b + c < b + c + d) {
15 total++;
···4using namespace std;
56int main() {
07 int total = 0;
8 int a = 0, b = 0, c = 0, d = 0;
9 int rownumber = 0;
1011+ while (cin >> d) {
12 if (rownumber >= 3) {
13 if (a + b + c < b + c + d) {
14 total++;