mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-25 07:31:59 +00:00
B2019 整型与布尔型的转换
R53340863
This commit is contained in:
parent
2f59e33006
commit
d89b5a3fc2
10
Luogu/problem/B2019/B2019.cpp
Normal file
10
Luogu/problem/B2019/B2019.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int n;
|
||||||
|
cin >> n;
|
||||||
|
cout << !!n << endl;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user