记录一下今天所学,
-
//C++风格解法2,判0法,判断是否为0,通过率100%
-
#include <iostream>
-
using namespace std;
-
int main()
-
{
-
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
-
int x;
-
cin>>x;
-
if(n==0)
-
cout<<1;
-
else
-
cout<<0;
-
return 0;
-
}
-
#include <stdio.h>
-
int main()
-
{
-
int i;
-
scanf("%d",&i);
-
if(i==0)printf("1");
-
if(i==1)printf("0");
-
return 0;
-
}