Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main() {
- ifstream fin("date.in");
- unsigned int n, x;
- fin >> n;
- int last = -1;
- while(n--) {
- fin >> x;
- if(x%2 == 0) {
- if((int)x >= last) {
- last = x;
- }
- else {
- cout << "NU";
- return 0;
- }
- }
- }
- cout << "DA";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement