生命不息,OI不止
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《LCOI-R1、LGR-266、LGR-267 作弊名单》回复:
qp
在讨论《【喜报】洛谷网校学员 CSP-J/S NOIP 喜报》回复:
qp
在讨论《LGR 261 赛后总结&致歉帖》回复:
qp
输入的整数在 [$1,4\times10^{18}$]之间 ---------------------------- int只到2147483647 ~~已经开了就当我没说~~
在讨论《RemoteJudge 服务中断情况公告》回复:
qp
```cpp #include using namespace std; int f1(int num) { int res=1; for(int i=1;i n) return 0; int n1=f1(n); int d=(f1(k)*f1(n-k))%504; return(n1*1/d)%504; } int…
在讨论《咕值计算更新声明》回复:
qp
```cpp #include using namespace std; int X,Y,nt[4][2]={{1,0},{-1,0},{0,1},{0,-1}},ans=0; struct node { int x,y; }u,v; bool b[501][501]; char a[501][501]; queue…
```cpp #include using namespace std; long long b[100000000];//这里开小了但开大会CE int main() { long long n,i; cin>>n; for(i=2;i =2)cout<<"^"<<b[j]; if(b[j]!=0&&j!=i)cou…
```cpp #include using namespace std; struct node{ int c,m,e,id; string as; }a[305]; bool cmp(node x,node y) { int x1=x.c+x.e+x.m; int y1=y.c+y.e+y.m; if(x1==y1)…
在讨论《RemoteJudge 服务中断情况公告》回复:
什么时候恢复?
```cpp #include using namespace std; int a; bool fh(int x) { // 检查是否是超级幸运数(大于等于a的完全平方数) int sqrt_x=sqrt(x); if (sqrt_x*sqrt_x==x&&x>=a) { return true; } // 检查是否…
在讨论《TLE 60分》回复:
不小心写错了,是40分
```cpp #include using namespace std; bool fb(int n) { int cnt=0; for(int i=2;n>=2;i++) { int flag=0; while(!(n%i)) { flag=1; n/=i; } if(flag==1) { cnt++; } } re…
在讨论《【优先晋级线公布】CSP-J/S 初赛讨论帖》回复:
qp
```cpp #include using namespace std; string fb(string a,int p1,int p2) { long long cnt=0; int len=a.length(); for(int j=0;j ='A') { t=10+a[j]-'A'; } else { t=a[…
在讨论《75玄关,求调》回复:
原来如此。懂了。谢谢大佬。
```cpp /*为什么75分*/ #include using namespace std; int main() { int n,k,a[1005]={},cnt=0; cin>>n>>k; for(int i=0;i >a[i]; } sort(a,a+n); for(int i=n-1;i>=0;i--) {…
### 当取极限值20 20 4 0时 我的答案1608418953863 正确答案56477364570 ```cpp #include using namespace std; long long s[21][21]; long long fb(int a,int b,int n,int m,int p,int q…
### 倒数第3个测试点RE ```cpp #include using namespace std; struct node{ int p,a; }s[5000]; bool cmp(node x,node y) { return x.p >n>>m; for(int i=0;i >s[i].p>>s[i].a; }…
### 20个测试点,对1个,错18个,还有一个RE ```cpp #include using namespace std; int cnt; struct node{ int h,w; }a[3005]; bool cmp(node x,node y) { if(x.h>y.h) return true; else…
```cpp #include using namespace std; char fb(string a) { int cnt=0; int len=a.length(); for(int i=len-1;i>0;i-=2) { int k=a[i]-'0'; k*=7; k=k%9; cnt+=k; } for(i…
# 5AC;5WA. ```cpp #include using namespace std; int b[5001]={0,1,2}; long long fb(int n) { if(b[n]==0&&n!=0)b[n]=fb(n-1)+fb(n-2); return b[n]; } int main() { in…
在讨论《入门赛 #37 取消等级分计算公告》回复:
......
## 样例过了,自编过了,时间超限。 ```cpp #include #include #include #include #include long long b[1000000],a[1000000]; using namespace std; int main() { int n,cnt=0; cin>>n; f…
# 代码 ```cpp #include using namespace std; int main() { char a[105]; cin>>a; int lena=strlen(a); int st=0; for(int i=0;i =6&&i-st+1 ='0'&&a[j] ='a'&&a[j] ='A'&&a…
```cpp #include using namespace std; int main() { char a[105]; cin>>a; int lena=strlen(a); int cnt=0,flag=0; for(int i=0;i =0;j--) { if(a[j]==',') { x=j+1; brea…