摘要: P1045 点击查看代码 #include<bits/stdc++.h> using namespace std; unsigned long long a[501]={1}; int main(){ int p; cin>>p; cout<<int(p*(log10(2))+1)<<endl; f 阅读全文
posted @ 2022-04-04 22:20 Amy-xue 阅读(56) 评论(0) 推荐(0)
摘要: 高精加 c[i]+=a[i]+b[i]; if(c[i]>=10){ c[i+1]+=1; c[i]-=10; } 高精减 c[i]+=a[i]-b[i]; if(c[i]<0){ c[i+1]-=1; c[i]+=10; } 高精乘 for(int i=1;i<=lena;i++){ for(in 阅读全文
posted @ 2022-04-04 21:33 Amy-xue 阅读(59) 评论(0) 推荐(0)
摘要: P1001 1. #include <iostream> #include <cstdio> using namespace std; int main() { int a,b; cin >> a >> b; cout << a+b; return 0; } 2.LCT #include<iostr 阅读全文
posted @ 2022-04-01 17:43 Amy-xue 阅读(100) 评论(0) 推荐(0)
摘要: Love all, trust a few, do wrong to none. 博爱,谨信,不负人. 对众人一视同仁,对少数人推心置腹,对任何人不要亏负. (As you like it) He childed as I fathered. 他有不孝的孩儿,而我则遭遇了无情的父亲. (King L 阅读全文
posted @ 2022-03-22 21:29 Amy-xue 阅读(170) 评论(0) 推荐(0)