if else


Submit solution

Points: 100 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C++, Java, Python

輸入一個數字 \(n\)

如果\(n = 1\)就輸出\(3\)

如果\(n = 2\)就輸出\(1\)

如果\(n = 3\)就輸出\(4\)

如果都不是就輸出\(3.141592653589793238462643383279502884197169399375105820974944592307816406286\)

複製用

3.141592653589793238462643383279502884197169399375105820974944592307816406286

輸入格式

第一行有一個數字 \( n (1 \le n \le 10) \)

輸出格式

輸出一行

範例輸入1

1

範例輸出1

3

範例輸入2

3

範例輸出2

4

Comments

There are no comments at the moment.