#39388: c++ ans


yp11251120@yphs.tp.edu.tw (708-43劉濟緯)

學校 : 臺北市私立延平高級中學
編號 : 237257
來源 : [203.72.178.1]
最後登入時間 :
2024-04-18 17:28:22
e968. 班級名單 (Student list) -- TOI練習賽201903新手組第2題 | From: [118.150.212.230] | 發表日期 : 2024-02-13 14:12

#include <bits/stdc++.h>

using namespace std;
int main()
{
    int x[25]{0},a;
    cin>>a;
    for(int i=1; i<=3; i++)
    {
        int b;
        cin>>b;
        x[b]=1;
    }
    for(int i=a; i>0; i--)
    {
        if(x[i]==0) cout<<"No. "<<i<<endl;
    }
}

 
ZeroJudge Forum