这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include #include using namespace std; const int N=110; char a[N][N]; int n,m,T; int r1,c1,r2,c2; long long dp[N][N][N]; int dx[4] = {-1, 0, 1, 0}, dy[4]…
```cpp #include #include using namespace std; string x; string ansx; string ansy; int main() { cin >> x; reverse(x.begin(), x.end()); int znum = 0; int notz = 0…
在讨论《菜鸡思路感觉是对的但是只有10分其他都tle了》回复:
就是找到每次位置变化的规律,然后不断往前面递推
```cpp #include using namespace std; typedef long long ll; ll n; string s; ll now; int main() { cin>>s>>n; now=s.size(); while(now*2<n) now*=2; while(1==1) { if…
```cpp #include using namespace std; const int N = 8 * 1E5 + 10; struct tree { int l; int r; int maxnum; } tr[N]; int n, m; int a[N]; void pushup(int u) { tr[u]…
在讨论《萌新才看了一点点线段树,为什么我样例不对咧》回复:
20一直是16
```cpp #include using namespace std; const int N = 4 * 1E5 + 10; struct tree { int l; int r; int sum; int add; } tr[N]; int n, m; int a[N]; void pushup(int u) {…
```cpp #include #include #include using namespace std; int day[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; const int N = 10000; struct node { int…
在讨论《为什么我的i还是*,看来好多遍了!》回复:
这是输出 *y*zhong gy****** n******* o**z**** h***h*** z****o** ******n* y******g
```cpp #include #include #include using namespace std; const int N = 110; char a[N][N]; int n; int dx[8] = {0, 0, 1, -1, 1, -1, 1, -1}; int dy[8] = {1, -1, 0, 0…
```cpp #include #include using namespace std; typedef long long ll; const int N = 50; int a[N]; int n; int num; int ans; bool st[N]; unordered_set q; bool judge…
在讨论《二分在 2,4个点超时?》回复:
我是傻derhhh,改了改了
```cpp #include using namespace std; double a,b,c,d; double x1,x2,x3; double fc(double x) { return a*x*x*x+b*x*x+c*x+d; } int main() { cin>>a>>b>>c>>d; int num=…
在讨论《树状数组全wa》回复:
过了过了,原来我离散化错了哈哈哈
```cpp #include #include #include using namespace std; const int N=5*1e5+10; vector v; int a[N]; int n; long long num; int cnt[N]; int lowbit(int x) { return x&…
```cpp #include #include using namespace std; int n; const int N=300; struct node { int num; string name; int score1,score2; char judge1,judge2; int data; int m…
```cpp #include #include using namespace std; int n; int x; set q; set ::iterator it; int main() { cin>>n; for(int i=1;i >x; q.insert(x); } for(it=q.begin();it!…
```cpp #include using namespace std; const int N=100010; int n; struct student { string name; int score1; int score2; char ganbu; char xibu; int book; int money…
```cpp #include using namespace std; int numa=0,numb=0; int judge11() {if(numa==11||numb==11) {if((numa-numb)>=2) return 111; if((numb-numa>=2)) return 112; } r…
```cpp #include #include using namespace std; struct people { int x; int score; }a[10010],b[100010]; void maopao_sort(people a[], int n) { for (int i = 1; i a[j…
在讨论《警示后人,警钟敲烂!关于Hack数据》回复:
嘻嘻嘻谢谢
``` #include using namespace std; int l,r,c,n,m; int a[100000],b[100000]; void insert(int l,int r,int c) {b[l]+=c; b[r+1]-=c; } void quick_sort(int a[],int l,in…
在讨论《样例能过但是全wa,求助》回复:
哥们解决没有啊,我也是全wa了```cpp #include #include #include using namespace std; vector add(vector &A , vector &B)//计算A+B { vector c; int t=0; for(int i=0;i A,B; for(int i…
在讨论《全wa求助,不知道问题在哪》回复:
``` #include #include #include using namespace std; vector add(vector &A , vector &B)//计算A+B { vector c; int t=0; for(int i=0;i A,B; for(int i=a.size()-1;i>=0;i…
在讨论《循环链表数据正确但只有25,求助!》回复:
```cpp #include using namespace std; struct node {int data; node *next; }; node *head,*r,*p; int main() {head=new node; r=new node; p=new node; p->data=1; head=…