ASC 46

A Astronomy Problem

直接双指针。

B Bipartite Bicolored Graphs

#include<cstdio>
#define LL long long
#define MAXN 301
const int MOD = 175781251;
int c[MAXN][MAXN], ans[MAXN][MAXN], inv[MAXN];
int pow2[MAXN], pow3[MAXN*MAXN];
inline int mul(int x, int y){ return (LL)x*y%MOD; }
inline int add(int x, int y){ return (x + y) % MOD; }
inline int sub(int x, int y){ return (x + MOD - y) % MOD; }
void init()
{
    for (int i = 0; i < MAXN; i++){
        c[i][0] = c[i][i] = 1;
        for (int j = 1; j < i; j++)
            c[i][j] = add(c[i - 1][j - 1], c[i - 1][j]);
    }
    pow2[0] = pow3[0] = 1;
    for (int i = 1; i < MAXN; i++)
        pow2[i] = mul(pow2[i - 1], 2);
    for (int i = 1; i < MAXN*MAXN; i++)
        pow3[i] = mul(pow3[i - 1], 3);
    inv[1] = 1;
    for (int i = 2; i < MAXN; i++)
        inv[i] = mul(inv[MOD%i], MOD - MOD / i);
    for (int n = 1; n < MAXN; n++){
        for (int i = 0; i <= n; i++)
            ans[1][n] = add(ans[1][n], mul(c[n][i], pow3[i*(n - i)]));
        ans[1][n] = mul(ans[1][n], inv[2]);
        for (int i = 2; i <= n; i++){
            for (int k = n - i + 1; k; k--)
                ans[i][n] = add(ans[i][n], mul(mul(c[n][k], ans[1][k]), ans[i - 1][n - k]));
            ans[i][n] = mul(ans[i][n], inv[i]);
            ans[1][n] = sub(ans[1][n], mul(pow2[i - 1], ans[i][n]));
        }
    }
}
int main()
{
    freopen("bipartite.in", "r", stdin);
    freopen("bipartite.out", "w", stdout);
    int n;
    init();
    while (scanf("%d", &n) == 1 && n){
        int sum = 0;
        for (int i = 1; i <= n; i++)
            sum = add(sum, ans[i][n]);
        printf("%d\n", sum);
    }
}

E Ebola Virus

#include<bits/stdc++.h>

using namespace std;

const double eps=1e-10;
const double pi=3.1415926535897932384626433832795;
const double eln=2.718281828459045235360287471352;

#define LL long long
#define IN freopen("ebola.in", "r", stdin)
#define OUT freopen("ebola.out", "w", stdout)
#define scan(x) scanf("%d", &x)
#define mp make_pair
#define pb push_back
#define sqr(x) (x) * (x)
#define pr(x) printf("Case %d: ",x)
#define prn(x) printf("Case %d:\n",x)
#define prr(x) printf("Case #%d: ",x)
#define prrn(x) printf("Case #%d:\n",x)
#define lowbit(x) (x&(-x))
#define fi first
#define se second
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;

const int maxn=3005;
LL g[maxn][maxn];
LL a[maxn],f[maxn];
int n;

int main()
{
    IN;OUT;
    while(scanf("%d",&n)==1 && n)
    {
        a[n+1]=0;
        for(int i=1;i<=n;i++)scanf("%lld",&a[i]);
        for(int i=n;i>=1;i--)a[i]+=a[i+1];
        for(int i=1;i<=n;i++)
        {
            f[i]=1e18;
            for(int j=1;j<=n;j++)g[i][j]=1e18;
        }
        for(int i=1;i<=n;i++)g[i][i]=a[i+1];
        for(int len=2;len<=n;len++)
            for(int i=1;i+len-1<=n;i++)
            {
                int j=i+len-1;
                //min(g[i+1][j]+2ll*a[i+1]+a[j+1],g[i+1][j]+2ll*a[j+1]+a[i+1]+(a[i]-a[i+1]));
                LL x=g[i+1][j]+a[i+1]+a[j+1]+a[i+1];
                LL y=g[i+1][j]+a[i+1]+2ll*a[j+1]+1ll*(3*(j-i))*(a[i]-a[i+1]);
                //if(i==1 && j==2)printf("!!! %lld %lld\n",x,y);
                g[i][j]=min(x,y);
            }
        f[0]=0;
        f[1]=a[2];
        for(int i=2;i<=n;i++)
        {
            f[i]=f[i-1]+a[i]+a[i+1];
            f[i]=min(f[i],g[1][i]+1ll*a[i+1]*i);
            f[i]=min(f[i],g[1][i]+1ll*a[i+1]*(i-1));
            //printf("%d %lld\n",i,f[i]);
            for(int k=1;k<i;k++)
                f[i]=min(f[i],f[k]+a[k+1]+g[k+1][i]+1ll*a[i+1]*(i-k-1));
        }
        LL ans=f[n];
        for(int i=1;i<n;i++)
            ans=min(ans,f[i]+g[i+1][n]+a[i+1]);    
        printf("%lld\n",ans);
    }
    return 0;
}

F Figure Skating

矩阵快速幂

#include<cstdio>
#include<cstring>
#define LL long long
#define MAXN 5
const int MOD=998244353;
struct Matrix{
    int a[MAXN][MAXN], n;
    Matrix(int n = 0) :n(n){}
    void zero(){
        for (int i = 0; i < n; i++)
            memset(a[i], 0, sizeof(int)*n);
    }
    void one(){
        zero();
        for (int i = 0; i < n; i++)a[i][i] = 1;
    }
    Matrix operator * (const Matrix& x)const{
        Matrix r(n); r.zero();
        for (int i = 0; i < n; i++){
            for (int j = 0; j < n; j++){
                if (a[i][j]){
                    for (int k = 0; k < n; k++)
                        r.a[i][k] = (r.a[i][k] + (LL)a[i][j] * x.a[j][k]) % MOD;
                }
            }
        }
        return r;
    }
    Matrix operator ^ (LL k)const{
        Matrix r(n), t = *this; r.one();
        for (; k; k >>= 1){
            if (k & 1)r = r * t;
            t = t * t;
        }
        return r;
    }
};
int main()
{
    freopen("figure.in","r",stdin);
    freopen("figure.out","w",stdout);
    int n;
    Matrix m(3);
    m.a[0][0]=1;m.a[0][1]=1;m.a[0][2]=0;
    m.a[1][0]=1;m.a[1][1]=2;m.a[1][2]=1;
    m.a[2][0]=0;m.a[2][1]=1;m.a[2][2]=2;
    while(scanf("%d",&n)==1&&n){
        Matrix t=m^n;
        printf("%d\n",t.a[0][0]);
    }
}

G Game of Col on Bamboo Forests

#include<bits/stdc++.h>

using namespace std;

const double eps=1e-10;
const double pi=3.1415926535897932384626433832795;
const double eln=2.718281828459045235360287471352;

#define LL long long
#define IN freopen("game.in", "r", stdin)
#define OUT freopen("game.out", "w", stdout)
#define scan(x) scanf("%d", &x)
#define mp make_pair
#define pb push_back
#define sqr(x) (x) * (x)
#define pr(x) printf("Case %d: ",x)
#define prn(x) printf("Case %d:\n",x)
#define prr(x) printf("Case #%d: ",x)
#define prrn(x) printf("Case #%d:\n",x)
#define lowbit(x) (x&(-x))
#define fi first
#define se second
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;

const int mod=242121643;
int c[105][105];
int n,m,s0,s1;

int main()
{
    IN;OUT;
    c[0][0]=c[1][1]=c[1][0]=1;
    for(int i=2;i<=100;i++)
    {
        c[i][0]=c[i][i]=1;
        for(int j=1;j<i;j++)
            c[i][j]=(c[i-1][j-1]+c[i-1][j])%mod;
    }
    while(scanf("%d%d",&n,&m)==2 && (n+m))
    {
        s0=s1=0;
        for(int i=1;i<=n;i++)
        {
            int x;
            scanf("%d",&x);
            if(x==1)s1++;else s0++;
        }
        int ans=0;
        for(int i=1;i<=min(s1,m);i+=2)
        {
            int now=1ll*c[s1][i]*c[s0][m-i]%mod;
            ans=(ans+now)%mod;
        }
        printf("%d\n",ans);
    }
    return 0;
}

J Jingles of a String

对每个i求以i为右节点的j个字母的最长串

#include<bits/stdc++.h>

using namespace std;

const double eps=1e-10;
const double pi=3.1415926535897932384626433832795;
const double eln=2.718281828459045235360287471352;

#define LL long long
#define IN freopen("jingles.in", "r", stdin)
#define OUT freopen("jingles.out", "w", stdout)
#define scan(x) scanf("%d", &x)
#define mp make_pair
#define pb push_back
#define sqr(x) (x) * (x)
#define pr(x) printf("Case %d: ",x)
#define prn(x) printf("Case %d:\n",x)
#define prr(x) printf("Case #%d: ",x)
#define prrn(x) printf("Case #%d:\n",x)
#define lowbit(x) (x&(-x))
#define fi first
#define se second
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;

int T,mod=4000007;
char s[100005];
int h[4000008];
int a[27],v[27];
LL ans[4000008];
int fl[4000008],nu[4000008],pos[27];
int n;
pii c[27];
int fk[4000008],cc;

int has(int x)
{
    int now=x%mod;
    while(h[now]!=x && fl[now]==T+1)now=(now+1)%mod;
    h[now]=x;
    if(fl[now]!=T+1)
    {
        nu[now]=0;ans[now]=0;
        fk[++cc]=now;
        fl[now]=T+1;
    }
    return now;
}

int main()
{
    IN;OUT;
    scanf("%d",&T);
    c[0]=mp(0,0);
    while(T--)
    {
        scanf("%s",s+1);
        n=strlen(s+1);
        cc=0;
        for(int i=1;i<=26;i++)v[i]=rand()%1000+1,pos[i]=0;
        for(int i=1;i<=n;i++)
        {
            int x=s[i]-96;
            pos[x]=i;
            for(int i=1;i<=26;i++)c[i]=mp(pos[i],i);
            sort(c+1,c+27);
            int now=0;
            for(int j=26;j>=1;j--)
            {
                if(c[j].fi<=0)break;
                now|=1<<(c[j].se-1);
                int u=has(now);
                nu[u]=max(nu[u],i-c[j-1].fi);
                ans[u]=1ll*nu[u]*(26-j+1);
            }
        }
        LL sum=0;
        for(int i=1;i<=cc;i++)sum+=ans[fk[i]];
        printf("%d %lld\n",cc,sum);
    }
    return 0;
}
==================================== 2025-09-05 03:31:38 0x7ff0b6331700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 33 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 0 srv_active, 0 srv_shutdown, 324412 srv_idle srv_master_thread log flush and writes: 324411 ---------- SEMAPHORES ---------- ------------------------ LATEST DETECTED DEADLOCK ------------------------ 2025-09-05 03:20:42 0x7ff0e0275700 *** (1) TRANSACTION: TRANSACTION 131865990, ACTIVE 19 sec starting index read mysql tables in use 2, locked 2 LOCK WAIT 14 lock struct(s), heap size 1128, 6 row lock(s), undo log entries 9 MariaDB thread id 704894, OS thread handle 140672529553152, query id 63819130 cluster-001 192.168.2.236 root Updating update ACT_RU_EXECUTION SET REV_ = 2, IS_ACTIVE_ = 0, TASK_COUNT_ = 0, JOB_COUNT_ = 1 where ID_ = '1d59e4b6-8a07-11f0-b47c-c42360d7916e' and REV_ = 1 *** WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 1933 page no 11 n bits 40 index PRIMARY of table `nbcio-boot`.`act_ru_execution` trx id 131865990 lock_mode X locks rec but not gap waiting Record lock, heap no 17 PHYSICAL RECORD: n_fields 41; compact format; info bits 0 0: len 30; hex 31643539653462362d386130372d313166302d623437632d633432333630; asc 1d59e4b6-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 4; hex 80000001; asc ;; 4: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 5: SQL NULL; 6: len 30; hex 31643537346361322d386130372d313166302d623437632d633432333630; asc 1d574ca2-8a07-11f0-b47c-c42360; (total 36 bytes); 7: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 8: SQL NULL; 9: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 10: len 16; hex 41637469766974795f3133737668396e; asc Activity_13svh9n;; 11: len 1; hex 81; asc ;; 12: len 1; hex 80; asc ;; 13: len 1; hex 80; asc ;; 14: len 1; hex 80; asc ;; 15: len 1; hex 80; asc ;; 16: len 4; hex 80000001; asc ;; 17: SQL NULL; 18: len 0; hex ; asc ;; 19: SQL NULL; 20: SQL NULL; 21: len 7; hex 99b78ab4d50000; asc ;; 22: SQL NULL; 23: SQL NULL; 24: SQL NULL; 25: len 1; hex 81; asc ;; 26: len 4; hex 80000000; asc ;; 27: len 4; hex 80000001; asc ;; 28: len 4; hex 80000000; asc ;; 29: len 4; hex 80000000; asc ;; 30: len 4; hex 80000000; asc ;; 31: len 4; hex 80000000; asc ;; 32: len 4; hex 80000000; asc ;; 33: len 4; hex 80000002; asc ;; 34: len 4; hex 80000000; asc ;; 35: SQL NULL; 36: SQL NULL; 37: SQL NULL; 38: SQL NULL; 39: SQL NULL; 40: SQL NULL; *** CONFLICTING WITH: RECORD LOCKS space id 1933 page no 11 n bits 40 index PRIMARY of table `nbcio-boot`.`act_ru_execution` trx id 131865990 lock mode S locks rec but not gap Record lock, heap no 14 PHYSICAL RECORD: n_fields 41; compact format; info bits 0 0: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 4; hex 80000001; asc ;; 4: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 5: SQL NULL; 6: SQL NULL; 7: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 8: SQL NULL; 9: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 10: SQL NULL; 11: len 1; hex 81; asc ;; 12: len 1; hex 80; asc ;; 13: len 1; hex 81; asc ;; 14: len 1; hex 80; asc ;; 15: len 1; hex 80; asc ;; 16: len 4; hex 80000001; asc ;; 17: SQL NULL; 18: len 0; hex ; asc ;; 19: SQL NULL; 20: len 13; hex 4576656e745f306c73746a7079; asc Event_0lstjpy;; 21: len 7; hex 99b78ab4d30000; asc ;; 22: len 5; hex 61646d696e; asc admin;; 23: SQL NULL; 24: SQL NULL; 25: len 1; hex 81; asc ;; 26: len 4; hex 80000000; asc ;; 27: len 4; hex 80000000; asc ;; 28: len 4; hex 80000000; asc ;; 29: len 4; hex 80000000; asc ;; 30: len 4; hex 80000000; asc ;; 31: len 4; hex 80000000; asc ;; 32: len 4; hex 80000000; asc ;; 33: len 4; hex 80000000; asc ;; 34: len 4; hex 80000000; asc ;; 35: SQL NULL; 36: SQL NULL; 37: SQL NULL; 38: SQL NULL; 39: SQL NULL; 40: SQL NULL; Record lock, heap no 17 PHYSICAL RECORD: n_fields 41; compact format; info bits 0 0: len 30; hex 31643539653462362d386130372d313166302d623437632d633432333630; asc 1d59e4b6-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 4; hex 80000001; asc ;; 4: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 5: SQL NULL; 6: len 30; hex 31643537346361322d386130372d313166302d623437632d633432333630; asc 1d574ca2-8a07-11f0-b47c-c42360; (total 36 bytes); 7: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 8: SQL NULL; 9: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 10: len 16; hex 41637469766974795f3133737668396e; asc Activity_13svh9n;; 11: len 1; hex 81; asc ;; 12: len 1; hex 80; asc ;; 13: len 1; hex 80; asc ;; 14: len 1; hex 80; asc ;; 15: len 1; hex 80; asc ;; 16: len 4; hex 80000001; asc ;; 17: SQL NULL; 18: len 0; hex ; asc ;; 19: SQL NULL; 20: SQL NULL; 21: len 7; hex 99b78ab4d50000; asc ;; 22: SQL NULL; 23: SQL NULL; 24: SQL NULL; 25: len 1; hex 81; asc ;; 26: len 4; hex 80000000; asc ;; 27: len 4; hex 80000001; asc ;; 28: len 4; hex 80000000; asc ;; 29: len 4; hex 80000000; asc ;; 30: len 4; hex 80000000; asc ;; 31: len 4; hex 80000000; asc ;; 32: len 4; hex 80000000; asc ;; 33: len 4; hex 80000002; asc ;; 34: len 4; hex 80000000; asc ;; 35: SQL NULL; 36: SQL NULL; 37: SQL NULL; 38: SQL NULL; 39: SQL NULL; 40: SQL NULL; RECORD LOCKS space id 1933 page no 11 n bits 40 index PRIMARY of table `nbcio-boot`.`act_ru_execution` trx id 131866133 lock mode S locks rec but not gap Record lock, heap no 14 PHYSICAL RECORD: n_fields 41; compact format; info bits 0 0: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 4; hex 80000001; asc ;; 4: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 5: SQL NULL; 6: SQL NULL; 7: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 8: SQL NULL; 9: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 10: SQL NULL; 11: len 1; hex 81; asc ;; 12: len 1; hex 80; asc ;; 13: len 1; hex 81; asc ;; 14: len 1; hex 80; asc ;; 15: len 1; hex 80; asc ;; 16: len 4; hex 80000001; asc ;; 17: SQL NULL; 18: len 0; hex ; asc ;; 19: SQL NULL; 20: len 13; hex 4576656e745f306c73746a7079; asc Event_0lstjpy;; 21: len 7; hex 99b78ab4d30000; asc ;; 22: len 5; hex 61646d696e; asc admin;; 23: SQL NULL; 24: SQL NULL; 25: len 1; hex 81; asc ;; 26: len 4; hex 80000000; asc ;; 27: len 4; hex 80000000; asc ;; 28: len 4; hex 80000000; asc ;; 29: len 4; hex 80000000; asc ;; 30: len 4; hex 80000000; asc ;; 31: len 4; hex 80000000; asc ;; 32: len 4; hex 80000000; asc ;; 33: len 4; hex 80000000; asc ;; 34: len 4; hex 80000000; asc ;; 35: SQL NULL; 36: SQL NULL; 37: SQL NULL; 38: SQL NULL; 39: SQL NULL; 40: SQL NULL; Record lock, heap no 17 PHYSICAL RECORD: n_fields 41; compact format; info bits 0 0: len 30; hex 31643539653462362d386130372d313166302d623437632d633432333630; asc 1d59e4b6-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 4; hex 80000001; asc ;; 4: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 5: SQL NULL; 6: len 30; hex 31643537346361322d386130372d313166302d623437632d633432333630; asc 1d574ca2-8a07-11f0-b47c-c42360; (total 36 bytes); 7: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 8: SQL NULL; 9: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 10: len 16; hex 41637469766974795f3133737668396e; asc Activity_13svh9n;; 11: len 1; hex 81; asc ;; 12: len 1; hex 80; asc ;; 13: len 1; hex 80; asc ;; 14: len 1; hex 80; asc ;; 15: len 1; hex 80; asc ;; 16: len 4; hex 80000001; asc ;; 17: SQL NULL; 18: len 0; hex ; asc ;; 19: SQL NULL; 20: SQL NULL; 21: len 7; hex 99b78ab4d50000; asc ;; 22: SQL NULL; 23: SQL NULL; 24: SQL NULL; 25: len 1; hex 81; asc ;; 26: len 4; hex 80000000; asc ;; 27: len 4; hex 80000001; asc ;; 28: len 4; hex 80000000; asc ;; 29: len 4; hex 80000000; asc ;; 30: len 4; hex 80000000; asc ;; 31: len 4; hex 80000000; asc ;; 32: len 4; hex 80000000; asc ;; 33: len 4; hex 80000002; asc ;; 34: len 4; hex 80000000; asc ;; 35: SQL NULL; 36: SQL NULL; 37: SQL NULL; 38: SQL NULL; 39: SQL NULL; 40: SQL NULL; *** (2) TRANSACTION: TRANSACTION 131866133, ACTIVE 19 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 8 lock struct(s), heap size 1128, 3 row lock(s), undo log entries 5 MariaDB thread id 704896, OS thread handle 140672192235264, query id 63819129 cluster-001 192.168.2.236 root Updating update ACT_RU_TASK SET REV_ = 2, VAR_COUNT_ = 1 where ID_= '1d5a59ec-8a07-11f0-b47c-c42360d7916e' and REV_ = 1 *** WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 1939 page no 11 n bits 64 index PRIMARY of table `nbcio-boot`.`act_ru_task` trx id 131866133 lock_mode X locks rec but not gap waiting Record lock, heap no 62 PHYSICAL RECORD: n_fields 32; compact format; info bits 0 0: len 30; hex 31643561353965632d386130372d313166302d623437632d633432333630; asc 1d5a59ec-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000007dc1d86; asc ;; 2: len 7; hex 6500000c721a87; asc e r ;; 3: len 4; hex 80000002; asc ;; 4: len 30; hex 31643539653462362d386130372d313166302d623437632d633432333630; asc 1d59e4b6-8a07-11f0-b47c-c42360; (total 36 bytes); 5: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 6: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 7: SQL NULL; 8: SQL NULL; 9: SQL NULL; 10: SQL NULL; 11: SQL NULL; 12: SQL NULL; 13: len 9; hex e8bf90e8be93e9989f; asc ;; 14: SQL NULL; 15: SQL NULL; 16: len 16; hex 41637469766974795f3133737668396e; asc Activity_13svh9n;; 17: SQL NULL; 18: len 5; hex 61646d696e; asc admin;; 19: SQL NULL; 20: len 4; hex 80000032; asc 2;; 21: len 6; hex 68ba56b90000; asc h V ;; 22: SQL NULL; 23: SQL NULL; 24: len 4; hex 80000001; asc ;; 25: len 0; hex ; asc ;; 26: len 19; hex 31393538303630343432353531323039393836; asc 1958060442551209986;; 27: SQL NULL; 28: len 1; hex 81; asc ;; 29: len 4; hex 80000001; asc ;; 30: len 4; hex 80000002; asc ;; 31: len 4; hex 80000000; asc ;; *** CONFLICTING WITH: RECORD LOCKS space id 1939 page no 11 n bits 64 index PRIMARY of table `nbcio-boot`.`act_ru_task` trx id 131865990 lock_mode X locks rec but not gap Record lock, heap no 62 PHYSICAL RECORD: n_fields 32; compact format; info bits 0 0: len 30; hex 31643561353965632d386130372d313166302d623437632d633432333630; asc 1d5a59ec-8a07-11f0-b47c-c42360; (total 36 bytes); 1: len 6; hex 000007dc1d86; asc ;; 2: len 7; hex 6500000c721a87; asc e r ;; 3: len 4; hex 80000002; asc ;; 4: len 30; hex 31643539653462362d386130372d313166302d623437632d633432333630; asc 1d59e4b6-8a07-11f0-b47c-c42360; (total 36 bytes); 5: len 30; hex 31633436656466622d386130372d313166302d623437632d633432333630; asc 1c46edfb-8a07-11f0-b47c-c42360; (total 36 bytes); 6: len 30; hex 466c6f775f313735363937383135353931353a313a63336334663539352d; asc Flow_1756978155915:1:c3c4f595-; (total 57 bytes); 7: SQL NULL; 8: SQL NULL; 9: SQL NULL; 10: SQL NULL; 11: SQL NULL; 12: SQL NULL; 13: len 9; hex e8bf90e8be93e9989f; asc ;; 14: SQL NULL; 15: SQL NULL; 16: len 16; hex 41637469766974795f3133737668396e; asc Activity_13svh9n;; 17: SQL NULL; 18: len 5; hex 61646d696e; asc admin;; 19: SQL NULL; 20: len 4; hex 80000032; asc 2;; 21: len 6; hex 68ba56b90000; asc h V ;; 22: SQL NULL; 23: SQL NULL; 24: len 4; hex 80000001; asc ;; 25: len 0; hex ; asc ;; 26: len 19; hex 31393538303630343432353531323039393836; asc 1958060442551209986;; 27: SQL NULL; 28: len 1; hex 81; asc ;; 29: len 4; hex 80000001; asc ;; 30: len 4; hex 80000002; asc ;; 31: len 4; hex 80000000; asc ;; *** WE ROLL BACK TRANSACTION (0) ------------ TRANSACTIONS ------------ Trx id counter 131905131 Purge done for trx's n:o < 131905131 undo n:o < 0 state: running History list length 550 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION (0x7ff0e0413930), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0412830), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0410630), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040f530), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040d330), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040b130), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040a030), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0404b30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0403a30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ef730), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0407e30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e5e30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03de730), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03da330), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e6f30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03fa130), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ed530), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e0930), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ff630), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e3c30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ee630), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03fe530), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03dd630), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0411730), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f7f30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e8030), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040c230), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03fc330), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ea230), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0400730), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03fb230), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f0830), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03db430), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03dc530), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0415b30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03d9230), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e2b30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0408f30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0401830), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03df830), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e9130), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f9030), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f6e30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0402930), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0406d30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e1a30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e040e430), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e0405c30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f1930), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f3b30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03eb330), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03fd430), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f2a30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f5d30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03e4d30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03f4c30), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03ec430), not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7ff0e03d8130), not started 0 lock struct(s), heap size 1128, 0 row lock(s) -------- FILE I/O -------- Pending flushes (fsync) log: 0; buffer pool: 0 1434920925 OS file reads, 19143927 OS file writes, 644369 OS fsyncs 3897.40 reads/s, 16380 avg bytes/read, 53.94 writes/s, 1.61 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 2554, free list len 3603, seg size 6158, 190426 merges merged operations: insert 3960171, delete mark 2102308, delete 293542 discarded operations: insert 0, delete mark 0, delete 0 0.00 hash searches/s, 0.00 non-hash searches/s --- LOG --- Log sequence number 113366764089 Log flushed up to 113366734704 Pages flushed up to 113328944845 Last checkpoint at 113328944280 0 pending log flushes, 0 pending chkp writes 16941235 log i/o's done, 50.36 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 285212672 Dictionary memory allocated 2753544 Buffer pool size 16194 Free buffers 1 Database pages 16193 Old database pages 5957 Modified db pages 1363 Percent of dirty pages(LRU & free pages): 8.416 Max dirty pages percent: 90.000 Pending reads 0 Pending writes: LRU 0, flush list 0 Pages made young 6018957, not young 5395972665 1.82 youngs/s, 13116.51 non-youngs/s Pages read 1434913898, created 406527, written 2142377 3897.40 reads/s, 0.85 creates/s, 3.45 writes/s Buffer pool hit rate 756 / 1000, young-making rate 0 / 1000 not 817 / 1000 Pages read ahead 0.12/s, evicted without access 0.12/s, Random read ahead 0.00/s LRU len: 16193, unzip_LRU len: 0 I/O sum[293917]:cur[35], unzip sum[0]:cur[0] -------------- ROW OPERATIONS -------------- 0 read views open inside InnoDB Process ID=0, Main thread ID=0, state: sleeping Number of rows inserted 6459977, updated 6802780, deleted 1785346, read 34104311389 7.30 inserts/s, 20.45 updates/s, 2.00 deletes/s, 94549.65 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 0 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================ 帮我看一下
09-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值