#166 (Div. 2)

本文探讨了三个算法问题:找到大于给定年份且每位数字各不相同的最小年份;在矩阵中操作使得某一行或某一列的元素全部成为质数所需的最少操作次数;将集合划分为满足特定条件的k个集合的方法。通过实例代码展示了解决问题的思路和方法。

A.Beautiful Year

题意:找到大于y的第一个每位都不相同的年。

View Code
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
#define clr(x) memset(x,0,sizeof(x))
int a[4];
int main()
{
    int y;
    while (scanf("%d",&y)!=EOF)
    {
        y++;
        for (;;y++)
        {
            int x = y;
            a[0] = x/1000;
            x %= 1000;
            a[1] = x/100;
            x %= 100;
            a[2] = x/10;
            a[3] = x%10;
            sort(a,a+4);
            if (a[0]!=a[1] && a[1]!=a[2] && a[2]!=a[3])
            {
                printf("%d\n",y);
                break;
            }
        }
    }
    return 0;
}

 

B.Prime Matrix

题意:在一个n*m的格子中可以给任意的格子的数+1,问至少操作多少次可以使得其中某行或者某列全为质数。

分析:打个质数表,在判断就ok。

View Code
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
#define clr(x) memset(x,0,sizeof(x))

const int maxn = 101005;
int p[maxn];
int g[505][505];
void init()
{
    int i,j;
    clr(p);
    p[0]=p[1]=1;
    for (i=2; i<maxn; i++)
    {
        if (p[i]==0)
        {
            for (j=i*2; j<maxn; j+=i)
                p[j] = 1;
        }
    }
}
int c[maxn];
int r[maxn];
int mi[505][505];
int main()
{
   int i, j, k, x;
    int n, m, tot;
    init();
    clr(mi);
    clr(r),clr(c);
    while (scanf("%d %d",&n,&m)!=EOF)
    {
        for (i=0; i<n; i++)
            for (j=0; j<m; j++)
            {
                scanf("%d",&g[i][j]);
                x = g[i][j];
                while (p[x])
                    x++;
                mi[i][j] = x-g[i][j];

            }

                int res = 99999999;
        for (i=0; i<n; i++)
        {
            tot = 0;
            for (j=0; j<m; j++)
                tot += mi[i][j];
            r[i] = tot;
            if (r[i]<res)
                res = r[i];
        }

        for (i=0; i<m; i++)
        {
            tot = 0;
            for (j=0; j<n; j++)
                tot += mi[j][i];
            c[i] = tot;
            if (c[i]<res)
                res = c[i];
        }


        printf("%d\n",res);
    }
    return 0;
}

 

C.Secret

题意:将一个集合分成k个集合,要求每个集合的数至少有一个大于3且不成等差数列。

View Code
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
#define clr(x) memset(x,0,sizeof(x))

int m[1000005];
int main()
{
    int n,i, j, k;
    while (scanf("%d %d",&n,&k)!=EOF)
    {
        if (k*3>n)
        {
            printf("-1\n");
            continue;
        }
        int x = n-n%k;
        int y = x-k;
        for (j=0; j<k; j++)
        {
            for (i=j+1; i<=y; i+=k)
                m[i] = j+1;
        }
        for (i=y+1; i<x; i++)
            m[i] = i-y+1;
        m[x] = 1;
        for (i=x+1; i<=n; i++)
            m[i] = i-x;
        for (i=1; i<=n; i++)
            printf("%d%c",m[i],i==n?'\n':' ');
    }
    return 0;
}

 

D.Good Substrings

题意:找到一个字符串中,包含的坏字符不超过k个的子串的个数。

分析:字典树。

字典树①
#include <cstdio>
#include <cstring>
#define clr(x) memset(x,0,sizeof(x))
struct node
{
    int count;
    struct node*next[26];
}tt[2500000];
int tot;

char s[1600];
char c[27];
int main()
{
    int i, j, k, x;
    int n, m, res, sum;
    while (scanf("%s %s %d",s,c,&k)!=EOF)
    {
        res = 0;
        tot = 0;
        node *root = &tt[++tot];
        clr(tt[tot].next);
        for (i=0; s[i]; i++)
        {
            node *p = root;
            sum = 0;
            for (j=i; s[j]; j++)
            {
                if (c[s[j]-'a']=='0')
                    sum++;
                if (sum>k)
                    break;
                x = s[j]-'a';
                if (p->next[x]==NULL){
                    res++;
                    p->next[x] = &tt[++tot];
                    clr(tt[tot].next);
                }
                p = p->next[x];
            }
        }
        printf("%d\n",res);
    }
    return 0;
}

 

字典树②
#include <cstdio>
#include <cstring>
int next[2500000][26];
char s[1600];
char c[27];
int main()
{
    int i, j, k;
    int res, n, tot, sum, p, x;
    while (scanf("%s %s %d",s,c,&k)!=EOF)
    {
        res = 0;
        tot = 1;
        for (i=0; s[i]; i++)
        {
            sum = 0;
            p = 1;
            for (j=i; s[j]; j++)
            {
                if (c[s[j]-'a']=='0')
                    sum++;
                if (sum>k)
                    break;
                x = s[j]-'a';
                if (next[p][x] == 0){
                    res++;
                    next[p][x] = ++tot;
                }
                p = next[p][x];
            }
        }
        printf("%d\n",res);
    }
    return 0;
}

 

hash1
#include<iostream>
#include<algorithm>
#include <cstdlib>
#include <cstdio>
using namespace std;
long long a[3000000],k,c;
char s[1520],v[30];
int main()
{
    //freopen("Data.in","r",stdin);
    while(cin>>s>>v>>k)
    {
        c = 0;
    for(int i=0;s[i];i++){
        long long kk = k;
        long long h = 0;   
        for(int j=i; s[j]&&(v[s[j]-'a']>'0'||kk--);j++)
            a[c++]=h=(h*131)^s[j];
    }
    sort(a,a+c);
    cout<<unique(a,a+c)-a<<endl;
    }
}

 

转载于:https://www.cnblogs.com/dream-wind/archive/2013/02/12/2910245.html

<template> <div class="activity-content"> <div class="one"> <div class="bx"> <div class="m_b-41"> <div class="title m_b-10">{{ $t(&#39;v2New69&#39;) }}</div> <div class="text">{{ $t(&#39;v2New70&#39;) }}</div> </div> <div class="item-content"> <div class="item m_b-16"> <div> <div class="text1 m_b-14">{{ $t(&#39;v2New71&#39;) }}</div> <div class="item-title m_b-14"> {{ &#39;$&#39; + $formatNumberToKMBTQ(userData.totalActivityReward) }} </div> <div class="number"> <div class="m_r-8">{{ $t(&#39;v2New72&#39;) }}</div> <div class="right"> {{ &#39;+&#39; + $truncToFixed(userData.last24hActivityReward, 2) }}<img class="w-13 h-13" src="@/assets/images/new/Arrow-up.png" /> </div> </div> </div> </div> <div class="item bgu"> <div> <div class="text1 m_b-14">{{ $t(&#39;v2New73&#39;) }}</div> <div class="item-title m_b-14"> {{ $formatNumberToKMBTQ(userData.userCount) }} </div> <div class="number"> <div class="m_r-8">{{ $t(&#39;v2New72&#39;) }}</div> <div class="right"> {{ &#39;+&#39; + $formatMoney(userData.last24hUserCount) + $t(&#39;v2New74&#39;) }} </div> </div> </div> </div> </div> </div> </div> <div class="carousel"> <div class="carousel-inner" :style="{ width: carouselWidth }"> <div class="item" v-for="(item, index) in extendedCarouselList" :key="index" :style="{ minWidth: itemWidth }" > <img src="@/assets/images/new/aaa.png" alt="" /> <div> {{ $t(&#39;v2New75&#39;) + item.nickname + $t(&#39;v2New76&#39;) }} <span>{{ $formatMoney($truncToFixed(item.rewardAmount, 2)) + &#39; USDT !&#39; }}</span> </div> </div> </div> </div> <div class="two"> <div class="bx gradientRamp-border"> <div class="top"> <img class="w-36 h-36 m_r-10" :src="user.avatar || defaultImgUrl" alt="" /> {{ user.nickname }} </div> <div class="bottom"> <div class="left"> <div class="f_a_i-center m_b-16"> <img class="w-20 h-20 m_r-10" src="@/assets/images/new/eeee.png" alt="" /> <div class="title">{{ $t(&#39;v2New77&#39;) }}</div> </div> <div class="title-money"> {{ $formatMoney($truncToFixed(user.totalUnclaimedAmount, 2)) + &#39; USDT&#39; }} </div> </div> <div class="middle left"> <div class="f_a_i-center m_b-16"> <img class="w-20 h-20 m_r-10" src="@/assets/images/new/Frame 2147223273.png" alt="" /> <div class="title">{{ $t(&#39;v2New78&#39;) }}</div> </div> <div class="underline text1"> {{ user.joinedOngoingActivityCount + $t(&#39;v2New79&#39;) }} </div> </div> <Button bR="12" guang fS="14" paddingLR="22" paddingTB="9" :text="$t(&#39;v2New80&#39;)" rightArrow @click="$router.push(&#39;/competition&#39;)" ></Button> </div> </div> </div> <div class="three"> <div class="bx"> <CommonVantTabs :list="tabsList" @tabsClick="handleClick"> <template #0> <Activity @updateActivityList="updateActivityList" :list="userData.availableActivityList" :marginTop="&#39;m_t-36&#39;" ></Activity> </template> <template #1> <Activity @updateActivityList="updateFinishList" :list="finish" :marginTop="&#39;m_t-36&#39;" ></Activity> <div class="p_t-20 f_j_c-center" ref="section" v-if="finish.length"> <div v-show="loadingDataShow" @click="loadingDataJia" class="loading-data" > {{ $t(&#39;v2New302&#39;) }} </div> <div v-show="!loadingDataShow" @click="loadingDataJian" class="loading-data" > {{ $t(&#39;v2New303&#39;) }} </div> <!-- <Pagination :current-page="page.pageNo" :page-size="page.pageSize" :pageSizes="[6, 12, 18]" :total-items="page.total" @current-change="handleCurrentChange" @size-change="handleSizeChange" /> --> </div> </template> </CommonVantTabs> </div> </div> <div class="four"> <div class="bx"> <div class="top"> <div class="title">{{ $t(&#39;v2New83&#39;) }}</div> <div class="right f_a_i-center" @click="$router.push(&#39;/flow&#39;)"> {{ $t(&#39;v2New84&#39;) }} <img class="w-24 h-24 m_l-10" src="@/assets/images/new/arrow-narrow-right-blue.png" alt="" /> </div> </div> <div class="bottom"> <div class="item"> <img src="@/assets/images/new/Frame 2147223269.png" alt="" /> <div class="step">Step 1</div> <div class="text"> {{ $t(&#39;v2New85&#39;) }}<br /> {{ $t(&#39;v2New86&#39;) }} </div> </div> <img class="w-36 h-36 right-arrow" src="@/assets/images/new/Double Alt Arrow Right.png" alt="" /> <div class="item"> <img class="i-2" src="@/assets/images/new/Frame 2147223270.png" alt="" /> <div class="step">Step 2</div> <div class="text"> {{ $t(&#39;v2New87&#39;) }}<br /> {{ $t(&#39;v2New88&#39;) }} </div> </div> <img class="w-36 h-36 right-arrow" src="@/assets/images/new/Double Alt Arrow Right.png" alt="" /> <div class="item"> <img class="i-3" src="@/assets/images/new/Frame 2147223271.png" alt="" /> <div class="step">Step 3</div> <div class="text"> {{ $t(&#39;v2New89&#39;) }}<br /> {{ $t(&#39;v2New90&#39;) }} </div> </div> <img class="w-36 h-36 right-arrow" src="@/assets/images/new/Double Alt Arrow Right.png" alt="" /> <div class="item"> <img class="i-4" src="@/assets/images/new/Frame 2147223272.png" alt="" /> <div class="step">Step 4</div> <div class="text"> {{ $t(&#39;v2New91&#39;) }} </div> </div> </div> </div> </div> <div class="five"> <div class="bx"> <div class="title2 m_b-10">{{ $t(&#39;v2New92&#39;) }}</div> <div class="text1 m_b-36">{{ $t(&#39;v2New93&#39;) }}</div> <div class="bottom"> <div class="box m_b-16"> <div class="top"> <div class="f_a_i-center"> <img class="w-23 h-24 m_r-4" src="@/assets/images/new/image.png" alt="" /> {{ $t(&#39;v2New94&#39;) }} </div> <div class="data">{{ $t(&#39;v2New95&#39;) }}</div> </div> <div class="list" v-show="userData.popularCryptoList.length"> <div class="list-item" v-for="(item, index) in userData.popularCryptoList" :key="index" > <div class="f_a_i-center"> <img class="w-24 h-24 m_r-10" style="border-radius: 50%;" :src="item.icon ? item.icon : defaultSymbolImgUrl" alt="" /> {{ item.code }} </div> <div class="value"> {{ &#39;$&#39; + $formatNumberToKMBTQ(item.tradingVolume) }} </div> </div> </div> <EmptyNoData v-show="!userData.popularCryptoList.length" ></EmptyNoData> </div> <div class="box box2"> <div class="top"> <div class="f_a_i-center"> <img class="w-23 h-24 m_r-4" src="@/assets/images/new/image 81.png" alt="" /> {{ $t(&#39;v2New96&#39;) }} </div> <div class="data">{{ $t(&#39;v2New97&#39;) }}</div> </div> <div class="list" v-show="userData.popularUserList.length"> <div class="list-item" v-for="(item, index) in userData.popularUserList" :key="index" > <div class="f_a_i-center"> <img class="w-36 h-36 m_r-10" :src="item.avatar || defaultImgUrl" alt="" /> {{ item.nickname }} </div> <div class="value" :style=" item.profitRate < 0 ? &#39;color: #FF4848;&#39; : &#39;color: #00D059;&#39; " > {{ (item.profitRate >= 0 ? &#39;+&#39; : &#39;&#39;) + $formatMoney($truncToFixed(item.profitRate, 2)) + &#39;%&#39; }} </div> </div> </div> <EmptyNoData v-show="!userData.popularUserList.length" ></EmptyNoData> </div> </div> </div> </div> </div> </template> <script> // import All from &#39;@/views/modules/activity/components/all&#39; // import My from &#39;@/views/modules/activity/components/my&#39; import { mapState } from &#39;vuex&#39; import { Button, Activity, Pagination, EmptyNoData, CommonVantTabs, } from &#39;@/components&#39; import { activityHomepageData, profile2, finishedActivities } from &#39;@/api/api&#39; export default { components: { Button, Activity, Pagination, EmptyNoData, CommonVantTabs }, data() { return { loadingDataShow: true, // activeName: &#39;first&#39;, userData: { userCount: 0, last24hUserCount: 0, totalActivityReward: 0, last24hActivityReward: 0, rewardFeedList: [], availableActivityList: [], popularCryptoList: [], popularUserList: [], }, tabsList: [ { title: this.$t(&#39;v2New81&#39;), value: &#39;0&#39;, }, { title: this.$t(&#39;v2New82&#39;), value: &#39;1&#39;, }, ], user: { email: &#39;&#39;, totalUnclaimedAmount: 0, active: 0, joinedOngoingActivityCount: 0, }, finish: [], page: { pageNo: 1, pageSize: 10, total: 0, }, } }, computed: { ...mapState([&#39;userInfo&#39;, &#39;language&#39;]), extendedCarouselList() { return [...this.userData.rewardFeedList, ...this.userData.rewardFeedList] // 重复数组 }, carouselWidth() { return `${this.extendedCarouselList.length * 270}px` // 根据实际项目宽度计算 }, itemWidth() { return this.language === &#39;en&#39; ? &#39;350px&#39; : &#39;270px&#39; // 每个项目的宽度 }, }, created() { if (this.userInfo.accessToken) { this.profile2() } this.activityHomepageData() }, methods: { handleClick(name) { if (name == 1) return this.finishedActivities() this.activityHomepageData() }, updateActivityList() { this.activityHomepageData() }, updateFinishList() { this.finishedActivities() }, async activityHomepageData() { try { const res = await activityHomepageData() this.userData = res.data } catch (error) {} }, loadingDataJia() { this.page.pageSize += 10 this.finishedActivities().then(() => { if (this.finish.length === this.page.total) { this.loadingDataShow = false } }) }, loadingDataJian() { this.page.pageSize = 10 this.loadingDataShow = true this.finishedActivities().then(() => { this.$refs.section.scrollIntoView({ behavior: &#39;smooth&#39; }); }) }, async finishedActivities() { try { const res = await finishedActivities({ pageNo: this.page.pageNo, pageSize: this.page.pageSize, }) this.finish = res.data this.page.total = res.total } catch (error) {} }, handleCurrentChange(val) { this.page.pageNo = val this.finishedActivities() }, handleSizeChange(val) { this.page.pageSize = val this.page.pageNo = 1 this.finishedActivities() }, async profile2() { try { const res = await profile2() this.user = res.data } catch (error) {} }, }, } </script> <style lang="scss" scoped> .activity-content { // padding-bottom: 100px; .bx { // width: 1200px; } .one { width: 100%; // height: 491px; box-sizing: border-box; background: url(&#39;@/assets/images/new/Frame 2147223274.png&#39;) no-repeat; background-size: 100% 100%; padding-top: 156px; // margin: 0 auto; padding-bottom: 38.53px; .bx { // width: 1200px; display: flex; flex-direction: column; align-items: center; // justify-content: space-between; // box-sizing: border-box; .title { // height: 73px; font-family: &#39;PingFang SC&#39;; font-size: 32px; font-style: normal; font-weight: 600; line-height: 100%; /* 40px */ background: linear-gradient( 180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100% ); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .text { // height: 49px; font-family: &#39;PingFang SC&#39;; font-weight: 400; font-size: 14px; color: #c8c8d0; line-height: 18px; text-align: left; font-style: normal; text-transform: none; } .item-content { display: flex; flex-direction: column; align-items: center; } .item { position: relative; width: 347px; height: 169.235px; box-sizing: border-box; background: #0b0d21; border-radius: 10.181px; // border: 1px solid rgba(255, 255, 255, 0.12); padding: 30.5px; background: url(&#39;@/assets/images/new/Frame 2147223258.png&#39;) no-repeat; background-size: 100% 100%; .item-title { color: #fff; font-family: D-DIN; font-size: 44.117px; font-style: normal; font-weight: 700; // line-height: 100%; /* 52px */ } .number { display: flex; align-items: center; .left { color: #c8c8d0; font-family: &#39;PingFang SC&#39;; font-size: 12px; font-style: normal; font-weight: 400; line-height: normal; } .right { color: #00d059; font-family: D-DIN; font-size: 12px; font-style: normal; font-weight: 700; line-height: 140%; /* 19.6px */ display: flex; align-items: center; } } } .bgu { background: url(&#39;@/assets/images/new/Frame 2147223257.png&#39;) no-repeat; background-size: 100% 100%; } } } .carousel { overflow: hidden; width: 100%; height: 48px; box-sizing: border-box; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; .carousel-inner { display: flex; animation: slide 100s linear infinite; /* 根据需要调整速度 */ } @keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); /* 向左移动一半的宽度 */ } } .item { // min-width: 250px; /* 根据每个项的实际宽度进行调整 */ display: flex; align-items: center; // margin-left: 36px; img { width: 16px; height: 16px; margin-right: 4px; } div { color: #fff; font-family: &#39;PingFang SC&#39;; font-size: 12px; font-style: normal; font-weight: 400; line-height: normal; } span { color: #00d059; } } } .two { // padding: 100px 120px; padding-top: 39px; .gradientRamp-border { width: 347px; // height: 227px; margin: 0 auto; // box-sizing: border-box; background: #0b0d21; /* 背景颜色 */ padding: 24px 16px; border-radius: 12px; .top { position: relative; /* 确保内容在伪元素之上 */ z-index: 2; /* 确保内容在最上层 */ color: #fff; /* 确保文字颜色可见 */ padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; font-family: &#39;PingFang SC&#39;; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px; /* 142.857% */ letter-spacing: 0.56px; img { border-radius: 50%; } } .bottom { position: relative; z-index: 2; padding-top: 24px; // display: flex; // justify-content: space-between; // align-items: center; .left { margin-bottom: 36px; .title { color: #c8c8d0; font-family: &#39;PingFang SC&#39;; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px; /* 125% */ letter-spacing: 0.56px; } .title-money { color: #fff; font-family: D-DIN; font-size: 36px; font-style: normal; font-weight: 700; line-height: 36px; /* 100% */ } } .middle { .underline { font-size: 16px; color: #3860ff; // text-decoration-line: underline; // text-decoration-style: solid; // text-decoration-skip-ink: none; // text-decoration-thickness: auto; // text-underline-offset: auto; // text-underline-position: from-font; // cursor: pointer; } } } } } .three { padding: 70px 0; } .four { .bx { // height: 451px; width: 347px; margin: 0 auto; background: #0b0d21; box-sizing: border-box; border-radius: 28px 28px 28px 28px; border: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 16px; .top { display: flex; justify-content: space-between; align-items: center; // padding: 0 14px; margin-bottom: 10px; .title { font-family: &#39;PingFang SC&#39;; font-size: 20px; font-style: normal; font-weight: 600; line-height: 140%; /* 56px */ } .right { color: var(--primary-color); font-family: &#39;PingFang SC&#39;; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; cursor: pointer; } } .bottom { display: flex; flex-direction: column; align-items: center; .item { // width: 257px; // height: 285px; box-sizing: border-box; display: flex; flex-direction: column; // justify-content: space-between; align-items: center; img { width: 140px; height: 140px; // margin-bottom: 10px; } .i-2 { width: 145px; height: 191px; } .i-3 { width: 162px; height: 162px; } .i-4 { width: 176px; height: 176px; } .step { color: #c8c8d0; text-align: center; font-family: &#39;PingFang SC&#39;; font-size: 16px; font-style: normal; font-weight: 600; line-height: normal; margin-bottom: 10px; } .text { color: #c8c8d0; text-align: center; font-family: &#39;PingFang SC&#39;; font-size: 12px; font-style: normal; font-weight: 400; line-height: 20px; /* 166.667% */ margin-bottom: 16px; } } // .right-arrow { // margin-top: -20px; // } } } } .five { padding: 76px 0; .bx { display: flex; flex-direction: column; align-items: center; .title2 { background: linear-gradient( 180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100% ); font-size: 32px; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .text1 { font-size: 14px; } .bottom { display: flex; flex-direction: column; align-items: center; .box { width: 347px; height: 607px; box-sizing: border-box; padding: 28px 0; border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient( 180deg, rgba(56, 96, 255, 0.2) 0%, rgba(1, 5, 16, 0) 40.15% ); .top { padding: 0 24px; width: 100%; // height: 56px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; font-family: &#39;PingFang SC&#39;; font-size: 20px; font-style: normal; font-weight: 600; line-height: 140%; /* 30.8px */ margin-bottom: 20px; .data { color: #c8c8d0; font-feature-settings: &#39;ss01&#39; on, &#39;cv01&#39; on, &#39;cv11&#39; on; font-family: &#39;PingFang SC&#39;; font-size: 12px; font-style: normal; font-weight: 400; line-height: 12px; /* 100% */ padding-top: 0px; } } .list { max-height: 480px; /* 设置最大高度 */ overflow-y: auto; /* 允许垂直滚动 */ padding: 0 24px; /* 隐藏滚动条 */ scrollbar-width: none; /* Firefox */ &::-webkit-scrollbar { display: none; /* Chrome, Safari 和 Opera */ } .list-item { width: 100%; height: 48px; box-sizing: border-box; color: #fff; font-family: &#39;PingFang SC&#39;; font-size: 14px; font-style: normal; font-weight: 400; line-height: 140%; /* 19.6px */ display: flex; align-items: center; justify-content: space-between; padding: 0 10px; .value { color: #fff; font-family: D-DIN; font-size: 14px; font-style: normal; font-weight: 700; line-height: 140%; /* 19.6px */ } img { border-radius: 50%; } } .list-item:hover { border-radius: 12px; background: rgba(255, 255, 255, 0.08); } } } .box2 { background: linear-gradient( 180deg, rgba(255, 86, 96, 0.2) 0%, rgba(1, 5, 16, 0) 40.15% ); .list-item { height: 56px !important; } } } } } // &.first-active { // background: url(&#39;@/assets/images/deal/bg@2x.png&#39;) no-repeat; // background-size: 100% 100%; // ::v-deep .el-tabs__header { // margin-left: 150px; // margin-right: 150px; // } // } // ::v-deep .el-tabs__nav-scroll { // display: flex; // justify-content: center; // } // ::v-deep .el-tabs__header { // margin-bottom: 50px; // } .loading-data { color: var(--primary-color); } } </style> <div class="carousel"> <div class="carousel-inner" :style="{ width: carouselWidth }"> <div class="item" v-for="(item, index) in extendedCarouselList" :key="index" :style="{ minWidth: itemWidth }" > <img src="@/assets/images/new/aaa.png" alt="" /> <div> {{ $t(&#39;v2New75&#39;) + item.nickname + $t(&#39;v2New76&#39;) }} <span>{{ $formatMoney($truncToFixed(item.rewardAmount, 2)) + &#39; USDT !&#39; }}</span> </div> </div> </div> </div>这一段滚动在手机端网页上不会滚动,只显示数据,而且过一会数据也不见了
10-22
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值