提交时间:2022-07-19 11:52:07
运行 ID: 52311
#include<bits/stdc++.h> #define int long long using namespace std; inline int read(){ int x=0,f=0;char c=getchar(); while(c<48||c>57)f|=(!(c^'-')),c=getchar(); while(c>=48&&c<=57)x=(x<<1)+(x<<3)+(c^48),c=getchar(); return f?-x:x; } signed main(){ srand(time(0)); cout<<rand()%read()+1<<endl; return 0; }