13 lines
191 B
C++
13 lines
191 B
C++
|
#include <iostream>
|
||
|
#include <cstdio>
|
||
|
#include <cstdlib>
|
||
|
|
||
|
int main(int argc,char *argv[])
|
||
|
{
|
||
|
int x;
|
||
|
srand((unsigned)time(NULL));
|
||
|
x=rand();
|
||
|
std::cout<<x<<" "<<x%2<<std::endl;
|
||
|
return 0;
|
||
|
}
|