The 7th Zhejiang Provincial Collegiate Programming Contest

手把手教你学 GPU KMD”相关内容的专栏简介与目录 本专栏系统讲解GPU内核模式驱动(KMD)开发技术,涵盖四大核心模块:1)GPU驱动架构基础,解析UMD/KMD协同机制;2)KMD核心功能,包括内存管理、命令提交、中断处理等;3)底层硬件交互,详解PCIe/DMA传输、多级页表等;4)实战进阶,结合Linux DRM框架代码分析,探讨GPU虚拟化与性能优化。面向具备OS和C语言基础的开发者,提供从理论到实践的完整学习路径,帮助深入理解图形/计算驱动栈的底层实现原理。 阅读详情

A - Who is Older?

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;


int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int y1,y2,m1,m2,d1,d2;
        cin>>y1>>m1>>d1>>y2>>m2>>d2;
        if(y1<y2)
            cout<<"javaman"<<endl;
        else if(y1>y2)
            cout<<"cpcs"<<endl;
        else if(y1==y2){
            if(m1<m2)
            cout<<"javaman"<<endl;
            else if(m1>m2)
            cout<<"cpcs"<<endl;
            else if(m1==m2){
                if(d1<d2)
                cout<<"javaman"<<endl;
                else if(d1>d2)
                cout<<"cpcs"<<endl;
                else if(d1==d2)
                    cout<<"same"<<endl;
            }
        }
    }

    return 0;

}

B - Somali Pirates

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;


int main()
{
    int t;
    string s;
    cin>>t;
    while(t--)
    {
        cin>>s;
        for(int i=0;i<s.size();i++)
            if(isalpha(s[i]))
                cout<<s[i];
        cout<<endl;
    }

    return 0;

}

E - An Awful Problem

题目大意:求两个日期之间,月份是素数而且日期是素数的有哪几天,当时模拟赛现场做的人都要爆炸了,试了各种方法还是没有解决,最后的时候破罐子破摔,统一把日期推到当年1月1日才完成

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;
int Prime[]= {2,3,5,7,11,13,17,19,23,29,31};
int day[2][12]=
{
    31,28,31,30,31,30,31,31,30,31,30,31,
   31,29,31,30,31,30,31,31,30,31,30,31
};
bool isPrime(int x){
    int flag=0;
    for(int i=0;i<11;i++){
        if(x==Prime[i]){
            flag=1;
            break;
        }
    }
    return flag;
}
bool isLeap(int x){
  if(((x%4==0)&&(x%100!=0))||(x%400==0))
    return 1;
  return 0;
}
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int y1,y2,m1,m2,d1,d2;
        cin>>y1>>m1>>d1>>y2>>m2>>d2;
        int cnt=0;
         if(isPrime(m1)&&isPrime(d1))
            cnt++;
        while(1)
        {
            if(isPrime(m1)&&isPrime(d1)){
                cnt--;
                //cout<<y1<<" "<<m1<<" "<<d1<<endl;
            }
            if(m1==1&&d1==1)
                break;
            d1--;
            if(d1<0){
                m1--;
                d1=day[isLeap(y1)][m1-1];
            }
        }//推到当年1月1
        //cout<<cnt<<endl;
        for(int i=y1;i<y2;i++){
            if(isLeap(i))
                cnt+=53;
            else cnt+=52;
        }
        y1=y2;
        //cout<<y1<<" "<<m1<<" "<<d1<<" "<<cnt<<endl;
        while(1)
        {
            if(isPrime(m1)&&isPrime(d1)){
                cnt++;
                //cout<<y1<<" "<<m1<<" "<<d1<<endl;
            }
            if(y1==y2&&m1==m2&&d1==d2)
                break;
            d1++;
            if(d1>day[isLeap(y1)][m1-1]){
                d1=1;
                m1++;
                if(m1>12){
                    m1=1;
                    y1++;
                }
            }
        }
        cout<<cnt<<endl;
    }

    return 0;

}

G - Wu Xing

 #include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;


int main()
{
    int x;
    while(cin>>x,x){
        cout<<x/2<<endl;
    }
    return 0;

}

H - One Person Game

http://blog.csdn.net/tinyguyyy/article/details/51066923


J - Process the Tasks

http://blog.csdn.net/tinyguyyy/article/details/51066991


K - Strange Country II

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;
int G[105][105];
int shunxu[105],vis[105];
int n;
int flag;
void dfs(int st,int cnt)
{
    shunxu[cnt] = st;
    if(cnt == n)
    {
        flag = 1;
        return;
    }
    for(int i= 1; i<= n; i++)
    {
        if(!vis[i] && G[st][i] == 1)
        {
            vis[i] = 1;
            dfs(i,cnt+1);
            if(flag == 1)
                return;
            vis[i] = 0;
        }
    }
}

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        flag=0;
        memset(G,0,sizeof(G));
        memset(vis,0,sizeof(vis));
        memset(shunxu,0,sizeof(shunxu));
        cin>>n;
        for(int i=0; i<n*(n-1)/2; i++)
        {
            int x,y;
            cin>>x>>y;
            G[x][y]=1;
        }
        for(int i=1; i<=n; i++)
        {
            vis[i]=1;
            dfs(i,1);
            vis[i]=0;
            if(flag)
                break;
        }
        if(flag==0)
            cout<<"Impossible";
        else
        {
            for(int i=1; i<=n; i++)
            {
                if(i!=1)
                    cout<<" ";
                cout<<shunxu[i];
            }
        }
        cout<<endl;
    }
    return 0;
}


L - Guess the Price

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<queue>
#define mod 1e9+7
#define ll long long
#define MAXSIZE 100005
#define inf 0x3f3f3f3f
#define eps 1e-7
#define PI acos(-1.0)
#define N 200
using namespace std;


int main()
{
    int t,x,a,b;
    cin>>t;
    while(t--)
    {
       cin>>x>>a>>b;
       if(abs(x-a)<abs(x-b))
        cout<<"A"<<endl;
       else cout<<"B"<<endl;
    }

    return 0;

}





RT-DETR改进策略【注意力机制篇】| 2024 PPA 并行补丁感知注意模块,提高小目标关注度 本文记录的是利用改进检测精度,详细说明了优化原因,注意事项等。原论文在红外小目标检测任务中,小目标在多次下采样操作中容易丢失关键信息。通过替代编码器和解码器基本组件中的传统卷积操作,更好地保留小目标的重要信息。HCF-Net: Hierarchical Context Fusion Network for Infrared Small Object Detection采用多分支特征提取策略,通过不同分支提取不同尺度和层次的特征。利用局部、全局和串行卷积分支,对输入特征张量进行处理。通过控制 patch si 阅读详情

相关推荐

使用moveit中的报错及解决

1.fatal error: moveit/move_group_interface/move_group.h: 没有那个文件或目录。// #include <moveit/move_group_interface/move_group.h> 改为。问题1 moveit/move_group_interface/move_group.h: 没有那个文件或目录。在运行c++程序时报错。

qq_60566155的博客 2293

The 13th Zhejiang Provincial Collegiate Programming Contest

Apples and IdeasTime Limit: 2 Seconds Memory Limit: 65536 KB "If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if y...

dielu7216的博客 231

ad23新版Geber导出-官方教程(22.11版本后)

AD23新版本geber文件导出(含官方教程)-22.11之后的版本均可用此教程

安和的博客 3万+

2016 浙江省赛 The 13th Zhejiang Provincial Collegiate Programming Contest K题 SPFA

链接:戳这里 Highway Project Time Limit: 2 Seconds      Memory Limit: 65536 KB Edward, the emperor of the Marjar Empire, wants to build some bidirectional highways so that he can reach other citi

Cross 561

腾讯地图自定义瓦片地图开发实战:从坐标定位到图层融合

本文详细介绍了腾讯地图自定义瓦片地图开发的全流程,从坐标定位到图层融合的实战技巧。通过具体代码示例和常见问题解决方案,帮助开发者快速掌握腾讯地图API的自定义瓦片功能,实现室内外地图的无缝衔接和特殊图层的叠加展示。

weixin_42526015的博客 176

ADS交叉耦合振荡器VCO仿真

本文主要参考视频中如何使用进行ADS交叉耦合振荡器仿真和分析,由于视频中有诸多错误和视频清晰度较低,虽然视频博主及时改正,为了节省学习时间,可以直接参考本文。

qq_32589131的博客 5440

BSUIR Open Finals

A. Game with chocolates 因为差值必须是$P$的幂,故首先可以$O(\log n)$枚举出先手第一步所有取法,判断之后的游戏是否先手必败。 对于判断,首先特判非法的情况,并假设$n&lt;m$,则题意可理解成将$n$或者$m$减小至$n-P^k$,在$P$进制下可以理解为$n$某一位减$1$,且这一位在减之前不能是$0$。 若是将$m$减小为$n-P^k$,则整个游戏都...

weixin_34268753的博客 304

LightTools 中LCD投影仿真的checkerboard pattern偏振控制技术解析

本文深入解析了在LightTools软件中进行LCD投影仿真时,利用checkerboard pattern(棋盘格图案)结合偏振控制技术来模拟液晶面板像素开关、提升图像对比度的核心方法。文章从实战角度出发,详细拆解了通过设置波片(如1/2波片)和偏振片来操控S光与P光转换的原理,并分享了在LightTools中搭建仿真模型、使用VBA脚本自动化配置参数以提高效率的实用技巧,为光学工程师优化投影系统仿真流程提供了清晰指导。

weixin_29305313的博客 348

The 14th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple(A+B+C+D)

Cooking CompetitionTime Limit: 1 Second Memory Limit: 65536 KB “Miss Kobayashi’s Dragon Maid” is a Japanese manga series written and illustrated by Coolkyoushinja. An anime television series pro

妍恐龙的博客....^~^眼熟我 3302

Redis中什么是Big Key(大key)问题?如何解决Big Key问题?

通俗易懂的讲,Big Key就是某个key对应的value很大,占用的redis空间很大,本质上是大value问题。key往往是程序可以自行设置的,value往往不受程序控制,因此可能导致value很大。redis中这些Big Key对应的value值很大,在序列化/反序列化过程中花费的时间很大,因此当我们操作Big Key时,通常比较耗时,这就可能导致redis发生阻塞,从而降低redis性能。用几个实际的例子对大Key的特征进行描述:● 一个String类型的Key,它的值为5MB(数据过大); ● 一

weixiaohuai的博客 3万+

告别ROS1思维:在ROS2 Humble上,用Python搞定MoveIt2机械臂控制的完整流程

本文详细介绍了在ROS2 Humble环境下使用Python控制MoveIt2机械臂的完整流程。从环境配置、架构变革到实战操作,涵盖URDF适配、Action接口编程及性能优化技巧,帮助开发者高效迁移ROS1项目至ROS2平台,实现工业级机械臂控制。

weixin_30352645的博客 453

H-3XOR[CF-Gym-102134][2016-2017 7th BSUIR Open Programming Contest]

原题传送门 题面 3XOR time limit per test1 second memory limit per test64 megabytes inputstandard input outputstandard output problem descride Like every Andrew, our Andrew likes arrays. And he likes to play with arrays and search for

qq_43726593的博客 393

WPS访问权限不足怎么解决??具体怎么操作?

🏆本文收录于 《全栈 Bug 调优(实战版)》 专栏。专栏聚焦真实项目中的各类疑难 Bug,从成因剖析 → 排查路径 → 解决方案 → 预防优化全链路拆解,形成一套可复用、可沉淀的实战知识体系。无论你是初入职场的开发者,还是负责复杂项目的资深工程师,都可以在这里构建一套属于自己的「问题诊断与性能调优」方法论,助你稳步进阶、放大技术价值。

**My Coding Family** 4184

The 7th Zhejiang Provincial Collegiate Programming Contest - G(Wu Xing)

IntroductionThe Wu Xing, or the Five Movements, Five Phases or Five Steps/Stages, are chiefly an ancient mnemonic device, in many traditional Chinese fields.The doctrine of five phases describes

Just_ACM的专栏 750

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

【ZJCPC2021 第18届 浙江省赛】The 18th Zhejiang Provincial Collegiate Programming Contest(ACFGJLM 7题)

【ZJCPC2021 第18届 浙江省赛】The 18th Zhejiang Provincial Collegiate Programming Contest(ACFGJLM 7题)

小哈里的博客 3770

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

The 15th Zhejiang Provincial Collegiate Programming Contest SponsoredM Lucky 7(水)

Lucky 7Time Limit: 1 Second      Memory Limit: 65536 KBBaoBao has just found a positive integer sequence  of length  from his left pocket and another positive integer  from his right pocket. As number...

UncleJokerly 418

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - M Lucky 7

Lucky 7Time Limit:1 Second Memory Limit:65536 KB BaoBao has just found a positive integer sequenceof lengthfrom his left pocket and another positive integerfrom his right pocket. As numb...

weixin_30955341的博客 82

The 7th Zhejiang Provincial Collegiate Programming Contest->Problem B:B - Somali Pirates

http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3323 题意:去掉字符串里面的数字然后按输入顺序输出 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 int t; 6 cin&g...

weixin_30409849的博客 108

The 7th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Wu Xing

http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3328 至今未看懂题意,未编译直接提交,然后 A了。莫名AC总感觉怪怪的。 详情参考:http://www.acmsearch.com/article/show/2918 玄学参考: 1 #include<stdio.h> 2 int ma...

weixin_30673715的博客 104

The 18th Zhejiang Provincial Collegiate Programming Contest

中,由图可知,每个蜂巢相邻着六个蜂巢,所以每次加入蜂巢后,我们可以遍历它周围的六个蜂巢,如果之前的蜂巢出现过,则通过并查集的方式把出现过的蜂巢块加到当前蜂巢下,同时记录当前蜂巢块内有多少个蜂巢和重复的蜂巢个数。联系在一起呢,如果两个圆之间没有冲突,那我们可以剪掉另外一个圆使得剩下这两个没有冲突的圆可以被直接拿走,所以最后。,不会出现圆与圆之间相互嵌套的情况,即至少剪掉一个圆后所有的圆都能拿走。时,先来看至少剪掉两个圆的情况,这种情况下最多只会剩下一个圆,所以无论如何也能成功拿走所有的圆,

zjdysq的博客 1613

The 17th Zhejiang Provincial Collegiate Programming Contest

The 17th Zhejiang Provincial Collegiate Programming Contest 题目 A B C D E F G H I J K L solved ✔ ???? - - ???? - - - ✔ - ✔ - ✔:比赛时通过;????:赛后通过;⚪:比赛时尝试了未通过;-:比赛时未尝试

lllllan 1658

The 16th Zhejiang Provincial Collegiate Programming Contest

本次和队友总共出了五题(E,F,G,H,I)。 E. #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e5+10; int a[maxn],b[maxn]; int main(){ int T; scanf("%d",&T); while(T--...

452

The 17th Zhejiang Provincial Collegiate Programming Contest 补题

题目链接 http://codeforces.com/gym/102770 参考题解 A - AD 2020 简要题意: 多组数据,每次给定起始和结束日期 yyyymmdd,询问有多少天的日期表示中含有 202 子串。 解题思路: 日期总数为几百万,不大,可以直接预处理出来,含有 202 子串的日期权值为 1,否则为 0,每次询问就是区间和。更进一步,直接存权值为 1 的日期,询问时二分确定区间长度。 参考代码: #include<bits/stdc++.h> using namespace s

weixin_44059127的博客 1477

The 5th Zhejiang Provincial Collegiate Programming Contest 部分题解

A Accurately Say "CocaCola"!  暴力 求出 符合条件的情况好了, 反正一定是止于700的 #include #include bool check(int x) { do if(x % 10 ==7) return 1; while(x /= 10); return 0; } int main(void) { int T, n, ans = -1, tem

uiiの技术随笔 1346

The 11th Zhejiang Provincial Collegiate Programming Contest

A.Pokemon Master 传送门 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> pii; template <typename T> inline void rd(T& x) { ll tmp = 1; char c = getchar(); x = 0;

bloom_er的博客 311

The 16th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple

Problem AVertices in the Pocket 比赛地址:http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5989 补题地址:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4100 Problem BElemen...

无限迭代中...... 919
上一篇: Process the Tasks(ZOJ3331)
下一篇: The 11th Zhejiang Provincial Collegiate Programming Contest
Linnnnnger
博客等级 码龄11年 71粉丝 79原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值