···11#include <iostream>
22-#include <fstream>
3243using namespace std;
5465int main() {
77- ifstream input("input");
86 int previous = 2147483647, current = 0;
97 int total = 0;
1081111- while (input >> current) {
99+ while (cin >> current) {
1210 if (current > previous) {
1311 total++;
1412 }
+1-2
2021/1/p2.cpp
···44using namespace std;
5566int main() {
77- ifstream input("input");
87 int total = 0;
98 int a = 0, b = 0, c = 0, d = 0;
109 int rownumber = 0;
11101212- while (input >> d) {
1111+ while (cin >> d) {
1312 if (rownumber >= 3) {
1413 if (a + b + c < b + c + d) {
1514 total++;