SDNU_ACM_ICPC_2019_Winter_Practice_5th

用Cadence IC618和TSMC 180nm工艺,从零仿真一个2.4GHz双平衡吉尔伯特混频器 本文详细介绍了使用Cadence IC618和TSMC 180nm工艺从零开始仿真2.4GHz双平衡吉尔伯特混频器的完整流程。涵盖设计环境搭建、原理图设计、仿真配置、性能验证及版图设计等关键步骤,特别适合射频集成电路设计的学习者和实践者参考。通过实操技巧与工艺库结合的工程实践,帮助读者掌握混频器设计的核心技术。 阅读详情

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

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;
}

 

SAP_SD模块-销售批次策略应用记录 SAP_SD模块-销售批次策略完整案例 阅读详情

相关推荐

uCOS中的消息邮箱(:task与task之间传递一个数据(数据缓冲区))

程序需求,需要完成task与task之间  字符数组的数据传输 比如:在ucos中,串口2接收的字符数组是不定时的&不定长的;只有当接收到数据的时候_才将数据赋值给新数组 具体的程序示意如下: 图1:消息邮箱测试中的     向消息邮箱发送消息(OSMboxPost(Str_Box,(void*)rec);//发送消息--(向 消息邮箱_msg_key发送消息) ),实际项目需求的

faguoduifangui的博客 4540

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

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

paopaobu的专栏 582

WSL2+Docker+Ollama:解锁Windows本地GPU加速运行DeepSeek-R1模型

本文详细介绍了在Windows系统上,通过WSL2、Docker和Ollama的组合方案,实现本地GPU加速运行DeepSeek-R1模型的全过程。该方案解决了Windows环境下Ollama默认无法调用NVIDIA显卡的痛点,通过配置Docker的GPU支持,强制将计算任务分配给GPU,从而显著提升文本生成速度与效率,为开发者提供了一个便捷的本地AI测试环境。

weixin_28452161的博客 358

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

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

csdnyinchuan的专栏 3091

一份针对零基础学习AI Agent详细学习计划

以下是针对零基础学习者制定的AI Agent详细学习计划,结合最新行业动态和实用资源推荐,帮助你从入门到进阶系统掌握核心技能

sexy19910923的博客 1904

网易 广州 梦幻西游端游 客户端社招笔试题 2024

4道算法题,时间2小时,牛客网笔试注:采用OJ模式,需要自己处理输入、输出。

z2014z的博客 1813

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

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

u010211389的专栏 3833

【STK】手把手教你利用STK进行导弹和反导仿真02 - STK/MMT模块01 导弹任务分析工具概述

种工具:导弹设计工具(Missile Design Tool,MDT )、导弹飞行工具(Missile Flight Tool,截弹,或者用内置拦截弹编辑器创建的个性化的拦截弹, IFT 能够对 ―一对一 ‖动能拦截。导设置系统参数, 并对其有效性进行验证, 画性能图,保证该设计是可行的。(SAIC)公司联合开发研制,极大扩展了 STK 原有的导弹对象的功能,能够精确仿真。IFT 能够对拦截飞机、 导弹、卫星等目标进行仿真和分析。(2)推进系统参数,包括推力,比冲,秒流量,推力持续时间,喷嘴出口面积,

weixin_44184852的博客 1877

【Springboot】自定义启动banner

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

慕白Lee的博客 2630

YOLOv11-seg 改进系列 | 引入原创 RSCD 重参数共享卷积分割头,增强 Head 表达力并压低计算量

本文提出一种改进的YOLOv11-seg分割头Segment_RSCD,通过重参数共享卷积增强表达能力。该模块在LSCD共享检测头基础上引入DiverseBranchBlock重参数卷积,保留三尺度预测与Proto掩码原型接口不变。相比原始Segment头,Segment_RSCD参数增加4%但计算量降低1.3%,在共享卷积结构中通过多分支补偿表达能力损失,同时利用Scale层保持尺度差异校准。该方法不改动Backbone/Neck结构,仅重构检测/分割头,实现训练期多路径聚合与部署期等效单分支的平衡。

qq_44224801的博客 184

UE5 推荐的资产命名规范

在开发阶段中,随着 虚幻引擎(UE)(Unreal Engine (UE)) 项目日益复杂,内容浏览器(Content Browser) 中的 资产(Assets) 列表会不断扩充。这会导致资产出现各种变体版本,也会导致资产名称因过于相似而造成混淆。比如,你有一个文件夹名为"Soldier",这个文件夹中有蓝图、纹理和模型,它们的名称中都带"Soldier"一词,但在简单列表中,很难区别它们。

一碗清深的博客 3375

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

【Proteus仿真】51单片机+DAC0832+LM358放大电路波形发生器

【Proteus仿真】51单片机+DAC0832+LM358放大电路波形发生器

perseverance51博客 5787

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

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

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

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

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

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

SDNU_ACM_ICPC_2020_Winter_Practice_5th【解题报告】

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

The___Flash的博客 371

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

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
上一篇: 迷宫问题 (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、付费专栏及课程。

余额充值