CodeFoeces-719A

题目

原题链接:A. Vitya in the Countryside

题意

根据题目给出的序列,判断输入的字串是会上升还是下降。注意0和15两个数。

代码

#include
using namespace std;
int main() {
    int n,s[100];
    scanf("%d",&n);
    for(int i=0; is[n-2]) {
        printf("UP\n");
    } else printf("DOWN\n");
    return 0;
}

你可能感兴趣的:(CodeFoeces-719A)