提交时间:2022-07-19 11:52:00

运行 ID: 52302

#include<bits/stdc++.h> #define int long long #define mod 1000000007 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; } int x,sum; signed main(){ srand(time(0)); x=read(); for(int i=1;i<=6;i++)sum+=read(); sum>>=1; cout<<rand()%sum+1<<endl; return 0; }//This problem is too hard for me.