Type: Default 1000ms 128MiB

【例15.1】 整型与布尔型的转换

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

将一个整型变量的值赋给一个布尔型变量,再将这个布尔型变量的值赋给一个整型变量,得到的值是多少?

输入格式

一个整型范围内的整数,即初始时整型变量的值。

输出格式

一个整数,经过上述过程后得到的结果。

样例

3
1

KUNKKA做不了满分的题

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
24
Start at
2024-1-20 19:30
End at
2024-3-2 11:30
Duration
1000 hour(s)
Host
Partic.
7