#45806:


chen971023@gmail.com (ZiaynGZiyaNG)

學校 : 國立臺南第二高級中學
編號 : 291750
來源 : [1.172.123.126]
最後登入時間 :
2025-05-12 19:07:06
f427. 高雄市109年資訊競賽國中組第五題 -- 2020高雄市資訊學科能力複賽109高雄市資訊學科能力複賽 | From: [122.121.184.213] | 發表日期 : 2025-04-15 01:15

#include <iostream>

using namespace std;

 

int main()

{

int n;

cin >> n;

if (n == 0)

{

cout << "3" << endl;

}

if (n == 1)

{

cout << "1" << endl;

}

if (n == 2)

{

cout << "4" << endl;

}

if (n == 3)

{

cout << "1" << endl;

}

if (n == 4)

{

cout << "5" << endl;

}

if (n == 5)

{

cout << "9" << endl;

}

if (n == 6)

{

cout << "2" << endl;

}

if (n == 7)

{

cout << "6" << endl;

}

if (n == 8)

{

cout << "5" << endl;

}

if (n == 9)

{

cout << "3" << endl;

}

if (n == 10)

{

cout << "5" << endl;

}

if (n == 11)

{

cout << "8" << endl;

}

if (n == 12)

{

cout << "9" << endl;

}

if (n == 13)

{

cout << "7" << endl;

}

if (n == 14)

{

cout << "9" << endl;

}

if (n == 15)

{

cout << "3" << endl;

}

}

 
ZeroJudge Forum