SDNU_ACM_ICPC_2019_Winter_Practice_5th

【NLG】(六)文本生成评价指标—— ROUGE原理及代码示例 前奏: 【NLG】(一)文本生成评价指标——BLEU原理及代码示例 【NLG】(二)文本生成评价指标—— METEOR原理及代码示例 【NLG】(三)文本生成评价指标—— ENTROPY原理及代码示例 【NLG】(四)文本生成评价指标—— diversity原理及代码示例 【NLG】(五)文本生成评价指标—— kl_divergence原理及代码示例 1.ROUGE原理 2.优缺点 3.如何算ROUGE ... 阅读详情

年前最后一场,最 ♥ 水题欢乐赛.
┬┴┬┌─ ●─┬─  │─┼─┐ ●├─┤○
┴┬┴├┬ ┌─┼─ │◎ │ │ ○└┬┘●
─┼─││ │ │  ││─┴─┴ ──┼──
●│○││ ┴─┼─  │○  ● / │ \

A - Easy Marks

题意:给出 科目数量 n  和 平均分 k ,求下一门考多少分才能达到 k.

分析:暴力 暴力 暴力!暴力水鸭

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int T;
    int tot = 0;
    scanf("%d", &T);
    while(T--)
    {
        int n, k;
        int data;
        int sum = 0;
        scanf("%d %d", &n, &k);
        for(int i = 0; i < n; ++i)
        {
            scanf("%d", &data);
            sum += data;
        }
        for(int i = 1; i <= 100; ++i)
        {
            int t = (sum + i) / (n + 1);///考 i 分后的平均分.
            if(t >= k)
            {
                printf("Case %d: %d\n", ++tot, i);
                break;
            }
        }
    }
    return 0;
}

 

B - Candy I

 题意:有 n 个袋子,里面装着糖糖,若能均分则输出最少需要移动几颗糖,否则输出 -1.

分析:先求糖糖的 sum ,如果 sum 为 n 的倍数,记 t = sum / n,然后统计每个袋子里有多少糖是 > t 的,

要是不能被整除,就print -1 喽.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int a[10010];

int main()
{
    int n;
    while(scanf("%d", &n))
    {
        if(n == -1)
            break;
        int sum = 0;
        for(int i = 0; i < n; ++i)
        {
            scanf("%d", &a[i]);
            sum += a[i];
        }
        if(sum % n)
        {
            printf("-1\n");
            continue;
        }
        int t = sum / n;
        int ans = 0;
        for(int i = 0; i < n; ++i)
        {
            if(a[i] > t)
                ans += a[i] - t;
        }
        printf("%d\n", ans);
    }
    return 0;
}

 

C - Rectangles

题意:问由 1 - n 个小正方形能构成多少个长方形.

分析:暴力 AC,其实就是看 n 是否能被另一个数(1 ~ sqrt(n))整除.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int n;
    int ans = 0;
    scanf("%d",&n);
    for(int i = 1; i <= n; ++i)
    {
        int t = i;
        for(int j = 1; j <= sqrt(t); ++j)
        {
            if(!(t % j))
                ans++;
        }
    }
    printf("%d\n", ans);
    return 0;
}

 

D - Alchemy

题意:冗长的英文体面....

有 3 个袋子,分别装着 B, R, Y 颜色数量的试剂,给出一个整数 n,接着 n 行颜色试剂,用这些试剂来配药水,

问有几种配法.

分析:直接看代码吧 。◕ᴗ◕。.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int b, r, y;
    scanf("%d %d %d", &b, &r, &y);
    int n;
    scanf("%d", &n);
    string s;
    int ans = 1;
    for(int i = 0; i < n; ++i)
    {
        cin >> s;
        if(s == "Red")
            ans *= r;
        else if(s == "Blue")
            ans *= b;
        else if(s == "Yellow")
            ans *= y;
    }
    printf("%d\n", ans);
    return 0;
}

E - Genealogical Tree

题意:火星人在 papa 关系上很混乱,现有 n 位火星人,并给出这 n 位火星人的孩子,试确定这 n 位

火星人的父子关系.

分析:拓扑排序水题

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

const int M = 110;
int in[M];
vector <int> v[M];
vector <int> ans;
queue <int> q;

int main()
{
    int n;
    scanf("%d", &n);
    int data;
    for(int i = 1; i <= n; ++i)
    {
        while(1)
        {
            scanf("%d", &data);
            if(!data)
                break;
            v[i].push_back(data);
            in[data]++;
        }
    }
    for(int i = 1; i <= n; ++i)
    {
        if(!in[i])
            q.push(i);
    }
    while(!q.empty())
    {
        int p = q.front();
        ans.push_back(p);
        q.pop();
        int len = v[p].size();
        for(int i = 0; i < len; ++i)
        {
            in[v[p][i]]--;
            if(!in[v[p][i]])
                q.push(v[p][i]);
        }
   }
    int len = ans.size();
    bool flag = 0;
    for(int i = 0; i < len; ++i)
    {
        if(flag)
            printf(" ");
        printf("%d", ans[i]);
        flag = 1;
    }
    printf("\n");
    return 0;
}

 

F - GCD The Largest

题意:给出 n (2 ≤ n ≤ 10^{^{18}}),1 ≤ i, j ≤ n,求 max( gcd(i, j) ). 

分析:妈耶!这数据范围!那就安安静静的找规律吧.

 

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int T;
    scanf("%d", &T);
    while(T--)
    {
        ll n;
        scanf("%lld", &n);
        printf("%lld\n", n / 2);
    }
    return 0;
}

 

G - Peter's Smokes

 题意:Peter 有 n 只烟,k 个烟头能换 1 只烟,问 Peter 最多能有几支烟.

分析:简单模拟,暴力水题.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int n, k;
    while(~scanf("%d %d", &n, &k))
    {
        int t = 0;
        int ans = 0;
        while(1)
        {
            if(n)
            {
                t += n;
                ans += n;;
                n = 0;
            }
            if(t >= k)
            {
                n += t / k;
                t -= (t / k) * k;
            }
            if(n == 0 && t < k)
                break;
        }
        printf("%d\n", ans);
    }
    return 0;
}

 

H - Blown Garland

题意:有 4 种颜色的灯 —— R,B,Y,G.   有一组灯串,周期为 4,有某些盏灯灭掉了,

求各种颜色的灯各有多少种.

分析:遇到灭掉的灯,就向前或前后找,周期为 4.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    string s;
    cin >> s;
    int len = s.size();
    map <char, int> mp;
    mp['R'] = 0;
    mp['Y'] = 0;
    mp['B'] = 0;
    mp['G'] = 0;
    for(int i = 0; i < len; ++i)
    {
        if(s[i] == '!')
        {
            bool flag = 1;
            for(int j = i; j < len; j += 4)
            {
                if(s[j] != '!')
                {
                    flag = 0;
                    mp[s[j]]++;
                    break;
                }
            }
            if(flag)
            {
                for(int j = i; j >= 0; j -= 4)
                {
                    if(s[j] != '!')
                    {
                        mp[s[j]]++;
                        break;
                    }
                }
            }
        }
    }
    printf("%d %d %d %d\n", mp['R'], mp['B'], mp['Y'], mp['G']);
    return 0;
}

 

I - Pythagorean Theorem II

题意:给出一个数 n(1 ≤ n ≤ 10^{_{4}}),直角三角形三边为 a,b,c(1 ≤ a ≤ b ≤ c ≤ n).

求能构成直角三角形的个数.

分析:这题暴力 O(n^{_{3}}) 就 TLE 了,那就枚举 a 和 b,看 c 是否满足条件.

条件 1 :a^{_{2}} + b^{_{2}} = c^{_{2}}.

条件 2 :1 ≤ a ≤ b ≤ c ≤ n.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int main()
{
    int n;
    scanf("%d", &n);
    int ans = 0;
    for(int i = 1; i <= n; ++i)
    {
        for(int j = i + 1; j <= n; ++j)
        {
            int c1 = i * i + j * j;
            int c2 = (int)sqrt(c1);
            if(c2 * c2 == c1 && c2 <= n && c2 >= j)
            {
                ans++;
            }
        }
    }
    printf("%d\n", ans);
    return 0;
}

 

J - Calendar

题意:计算两个日期间的天数.

分析:先计算第一个日期是这一年的第几天,第二个日期是这一年的第几天,

然后再统计这两年隔了多少天.

#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#define eps 1e-6
#define PI acos(-1.0)
#define ll long long int
using namespace std;

int a1[13] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int a2[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

struct node
{
    int y;
    int m;
    int d;
};

int cmp(node a, node b)
{
    if(a.y != b.y)
        return a.y < b.y;
    if(a.m != b.m)
        return a.m < b.m;
    return a.d < b.d;
}

bool runnian(int year)
{
    if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
        return 1;
    return 0;
}

int time_gap(int y, int m, int d)
{
    int ans = 0;
    if(runnian(y))
    {
        for(int i = 1; i < m; ++i)
            ans += a1[i];
    }
    else
    {
        for(int i = 1; i < m; ++i)
            ans += a2[i];
    }
    ans += d;
    return ans;
}

int main()
{
    struct node s[5];
    scanf("%d:%d:%d", &s[1].y, &s[1].m, &s[1].d);
    scanf("%d:%d:%d", &s[2].y, &s[2].m, &s[2].d);
    sort(s + 1, s + 3, cmp);
    int ans1 = time_gap(s[1].y, s[1].m, s[1].d) - 1;///此日期在 s[1].y 年的第 ans1 天.
    int ans2 = time_gap(s[2].y, s[2].m, s[2].d) - 1;///此日期在 s[2].y 年的第 ans2 天.
    int ans = ans2 - ans1;
    for(int i = s[1].y; i < s[2].y; ++i)///统计年
    {
        if(runnian(i))
            ans += 366;
        else
            ans += 365;
    }
    printf("%d\n", ans);
    return 0;
}

 

使用epiDisplay包中的logistic 其中的logistic.display函数可以用于获取逻辑回归模型的汇总统计信息,包括自变量的优势比和置信区间,以及回归系数的Wald检验的p值。最后,我们使用print函数打印出汇总统计信息。使用epiDisplay包中的logistic.display函数获取逻辑回归模型的汇总统计信息(包括自变量的初始和调整后的优势比及置信区间,回归系数的Wald检验的p值)- R语言。通过使用logistic.display函数,我们可以方便地获取逻辑回归模型的重要统计信息,并对自变量的影响进行解释和推断。 阅读详情

相关推荐

【ESP32】ESP32连接JY61P并通过WIFI发送给电脑

ESP32S连接JY61P并通过WIFI把姿态数据发送给电脑1.采用Arduino IDE编译器;需要安装ESP32的开发板管理器;2.电脑接受数据是基于python的;

Doudou_Nai的博客 1133

名人名言 托尔斯泰 富兰克林 马克思 罗兰 培根

托尔斯泰【名言】 要有生活目标,一辈子的目标,一段时期的目标,一个阶段的目标,一年的目标,一个月的目标,一个星期的目标,一天的目标,一个小时的目标,一分钟的目标。 【富兰克林名言】 ❶惜时如金,如果有什么需要明天做的事,最好现在就开始❷凡事勤则易,凡事惰则难。、❸眠早起,使人健康、富有、明智。❹二十岁时起支配作用的是意志,三十岁时是机智,四十岁时是判断。❺今天的事不要拖到明天

paopaobu的专栏 582

基于强化学习的工业SCR脱硝系统控制算法设计与实现

本文提出了一种基于强化学习的工业SCR脱硝系统智能控制方法。针对SCR系统存在的非线性、大滞后和多变量耦合等控制难点,研究采用混合建模方法构建了精度在5%以内的系统模型,并设计了专门的强化学习环境。该方法通过定义合理的动作空间和状态空间,结合物理约束设计损失函数,利用深度强化学习算法优化氨喷射控制策略。相比传统PID控制,该智能控制器能更好地适应烟气参数波动,实现NOx排放的稳定控制,为工业环保设施提供了更优的自动化解决方案。

huanghm88的专栏 1457

脚本开发教程分享: 用按键精灵编写能俘获女神的弹出窗口命令

作者 & 编辑:按键学院   【按键精灵】 你是不是对千篇一律的弹出窗口内容感到厌倦了呢? 那么现在就跟我一起来打造令人耳目一新的弹出窗口吧,从此你的脚本弹出窗口将会丰富多彩,与众不同。 首先要记住一个命令“vbcr”,这个是VB的回车符。或者“vbcrlf” (回车换行符) ,这样就能起到一个换行的作用。 接下来就比较简单了,可以在网上搜索各种各样的图案(例如QQ宝典),开始编辑你的个性

csdnyinchuan的专栏 3091

测试工程师玩转DeepSeek之Prompt

掌握这些提示词技巧,测试工程师可提升与DeepSeek的协作效率至少3倍。建议结合具体项目上下文进行二次优化,并建立团队内部的提示词知识共享库。✅ “为电商支付接口生成包含幂等性验证的测试用例,覆盖网络中断重试场景”❌ “帮我写测试用例”

weixin_44872675的博客 2262

中国主要湖泊水库面状矢量边界图层ArcGIS应用实战:从数据获取到专题图制作

本文详细介绍了中国主要湖泊水库面状矢量边界图层在ArcGIS中的实战应用,从数据获取到专题图制作的全流程。涵盖官方数据源、科研机构共享数据及商业平台的选择,以及ArcGIS中的数据处理、拓扑错误修正和专题图设计技巧,帮助用户高效完成湖泊水库的空间分析与可视化。

weixin_33672400的博客 255

用特殊符号拼出漂亮的表格

在中文Windows环境下,控制台窗口中也可以用特殊符号拼出漂亮的表格来。 比如: ┌─┬─┐ │  │  │ ├─┼─┤ │  │  │ └─┴─┘ 其实,它是由如下的符号拼接的: 左上 = ┌ 上 =  ┬ 右上 =  ┐ 左 =  ├ 中心 =  ┼ 右 =  ┤ 左下=  └ 下 =  ┴ 右下 =  ┘ 垂直 =  │ 水平 =   ─ 本题目要求

u010211389的专栏 3833

用Python的fengwo模块复刻通达信筹码峰(COST/WINNER),选股效率提升10倍

本文介绍了如何使用Python的fengwo模块高效复刻通达信的筹码峰(COST/WINNER)计算,显著提升选股效率。通过C++内核与多线程优化,fengwo模块将传统Python实现的数小时计算压缩至分钟级,解决了量化交易中的性能瓶颈问题。文章详细解析了筹码峰计算原理、fengwo模块的技术架构及实战应用,助力量化开发者构建高效选股系统。

weixin_29062823的博客 438

【Springboot】自定义启动banner

【代码】【Springboot】自定义启动banner。

慕白Lee的博客 2630

不使用工具箱,通过MATLAB纯编程实现lstm网络的训练过程

长短期记忆网络(LSTM,Long Short-Term Memory)是一种时间循环神经网络,是为了解决一般的RNN(循环神经网络)存在的长期依赖问题而专门设计出来的,所有的RNN都具有一种重复神经网络模块的链式形式。在标准RNN中,这个重复的结构模块只有一个非常简单的结构,例如一个tanh层。

平时工作较为繁忙,私信消息一般晚上回复,谢谢大家~~ 1013

华为OD面试八股真题 - 操作系统 - 1

华为OD技术面,操作系统相关八股真题提供详细解答,这篇博客主要涉及于进程和线程相关知识点

qq_45776114的博客 1644

SDNU_ACM_ICPC_2020_Winter_Practice_1st E

题目 Peter Parker wants to play a game with Dr. Octopus. The game is about cycles. Cycle is a sequence of vertices, such that first one is connected with the second, second is connected with third and s...

夷则九的博客 232

三模冗余、纠错编码、单粒子翻转防护

本文探讨了高可靠性FPGA系统设计的三大关键技术:三模冗余(TMR)、纠错编码(ECC)和单粒子翻转(SEU)防护。TMR通过三个并行模块和表决器实现容错,但会增加硬件资源和功耗;ECC利用汉明码等编码方式检测和纠正数据错误,适用于存储器保护;SEU防护则针对高能粒子引发的位翻转问题,采用配置刷新、TMR和ECC等方法。文章还通过Verilog代码示例展示了这些技术的实现,并提出了一个综合应用案例,结合三种技术构建高可靠性控制系统。这些技术在航空航天、医疗设备等关键领域具有重要应用价值。

2301_79143213的博客 715

SDNU_ACM_ICPC_2021_Winter_Practice_4th [个人赛]

SDNU_ACM_ICPC_2021_Winter_Practice_4th [个人赛] 传送门 D - Odd Divisor 题意: 给你一个n,问你n是否至少有一个奇数因子(这里题意没说清,没说是不是只有一个还是可以有多个!AC以后才发现是不止一个 思路: 如果这个数没有奇数因子,那它肯定是2^k 1.所以我就开始用循环除2,看看最后是不是奇数,1除外,因为2的k次方除到最后就剩下1,所以得特判。但是这个做法感觉还是不够妙 再两个妙的做法: 2.因为2^k是指数函数,而与指数函数互为反函数的对数函数,

Suryxin's blogs 212

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

SDNU_ACM_ICPC_2021_Winter_Practice_5th [个人赛]

SDNU_ACM_ICPC_2021_Winter_Practice_5th [个人赛] 传送门 I - Stone 题意: 唐和江进行游戏,规则是,对于给定的n和k,唐先手,在黑板上写出[1,k]的数,再加下来每次写的数必须>=上次的数加1,<=上次的数加k,谁写出的先超过n即输 思路: 巴什博弈的变形。巴什博弈是n到0输,现在是1到n输,我们可以把它看成n - 1到0的巴什博弈即可,当(n - 1)% k == 0时先手输,即江赢,否则唐赢 #include<bits/stdc++.h

Suryxin's blogs 293

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

SDNU_ACM_ICPC_2020_Winter_Practice_5th【解题报告】

F-maki和tree: 一.题目大意: 简洁易懂 二.分析(吐槽): 看完题立马就知道咋做了,这不就是找白色连通块嘛(心里骂一声傻逼题) hhh,凭着我滴手速飞快地敲完,测样例,过了,自己出样例,也过了! 点击提交,woc 咋 T 了 ??!看我换个姿势再来亿次! 就这样,这道题卡我卡了半年,直到比赛结束也在疯狂 TLE... 赛后看题解,看到统计白色连通块大小这里,卧艹,这TM...

The___Flash的博客 371

SDNU_ACM_ICPC_2019_Winter_Practice_6th

A - The 3n+1 problem 题目背景就是著名的冰雹猜想,要求是给你两个数a,ba, ba,b, 让你求[a,b][a,b][a,b]中所有的数进行该猜想运算时最大的运算次数。题目数据较弱,直接暴力模拟计算过程即可(PS:PS:PS:数组打表会RE, 且a,ba,ba,b大小关系不定) AC代码: #include &amp;amp;amp;amp;amp;amp;lt;bits/stdc++.h&amp;amp;amp;amp;amp;amp;gt; using namespa

萌新也要搞算法 364

SDNU_ACM_ICPC_2019_Winter_Practice_9th题解

A - Minimum’s Revenge_规律 题意: 给你n个点,每个点编号从1-n,任意两个点之间连线的权值为这两个点编号的最小公倍数,问这n个点的最小生成树的权值和。 题解: 设任意两个点编号的最小公倍数肯定大于等于最大的编号,编号1与其他编号的最小公倍数等于其他编号,所以直接把其他编号的点与编号为1的点相连就是最小生成树了,权值和为 2 + 3 + ······ + n,所以公式...

ltrbless的博客 502

SDNU_ACM_ICPC_2021_Winter_Practice_9th [个人赛](部分)

SDNU_ACM_ICPC_2021_Winter_Practice_9th [个人赛](部分) G - 小约翰的游戏John 黑暗爆炸 - 1022 这个叫反尼姆游戏,因为取到最后一颗石头的人输 博弈论

qq_33969563的博客 262

SDNU_ACM_ICPC_2022_Winter_Practice_2th [个人赛]

C Yet Another Array Restoration 给定两个元素x和y,及项数n,求最大元素最小的等差数列。思路:让公差d尽量的小,然后从x和y中较大的一个不断-d枚举,若项数不到n,继续从较大元素不断+d枚举。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxx = 1e6 + 10; int t,n,x,y; int main() { cin>

qq_62615329的博客 3106

SDNU_ACM_ICPC_2022_Winter_Practice_1th (补题)

寒假第一场训练补题

m0_62289613的博客 450

SDNU_ACM_ICPC_2017_Winter_Practice_5th

A题爬楼梯,递归,签到题吧= = B题动规 /********************* author : MengXiangCong *********************/ #include #include #include #include #include #include #include #include #include #define MAXX(a,

qq_36485368的博客 216

SDNU_ACM_ICPC_2022_Winter_Practice_3th [个人赛]

B Matches Game 尼姆博弈,结论:每一堆个数异或,如果等于0,后手赢,否则先手赢。 参考博客 #include <iostream> using namespace std; typedef long long ll; const int maxx = 1e6 + 10; int main() { int m,x; while(cin>>m) { int tem=0; for(int i=1;i<=

qq_62615329的博客 338

SDNU_ACM_ICPC_2022_Winter_Practice_5th [个人赛]

D D - Alphabetical Strings 题意:起初字符串为空,按照a~z的顺序,将若干个英文字母加到字符串的前面或后面。给出n个字符串,询问是否满足题目要求。 思路:对于满足题意的字符串,若长度为len,则第1~len个英文字母都出现过且出现一次,并且从a的位置开始左右必须是下一个英文字母。 #include <stdio.h> #include <cstdio> #include <cmath> #include <algorithm&gt

qq_62615329的博客 405

SDNU_ACM_ICPC_2020_Winter_Practice_4th [Reproduced]

文章目录B - So Easy!C - Reading comprehension HDU - 4990H - TriangleI - Birthday ParadoxK - Reverse a SubstringL - Game with Telephone NumbersM - Alarm Clocks Everywhere B - So Easy! 思路:共轭矩阵的构造 C - Readin...

qq_43721152的博客 274

SDNU_ACM_ICPC_2022_Winter_Practice_6th [个人赛]

A A - Booby Prize 题意:给出n个不同的整数,问第二大的整数是第几个整数。 思路:结构体排序 #include <stdio.h> #include <cstdio> #include <cmath> #include <algorithm> #include <iostream> #include <map> #include <stack> #include <string> #in

qq_62615329的博客 604

SDNU_ACM_ICPC_2022_Winter_Practice_4th(补题)

SDNU_ACM_ICPC_2022_Winter_Practice_4th补题

m0_62289613的博客 450
上一篇: 迷宫问题 (POJ - 3984 ,BFS + 路径输出)
下一篇: Floating-Point Numbers( UVA - 11809,计算机浮点数模拟)
The___Flash
博客等级 码龄8年 79粉丝 223原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值