尧图网络 高端网站定制 · 原创设计
免费咨询热线
400-888-6620
免费获取方案
PAT甲级 1061 Dating 模拟+字符串
简单的模拟题读懂题就好了。代码如下#includeiostream#includestring#includemath.h#includestdio.husing namespace std;string s1,s2,s3,s4;intmain(){cins1s2s3s4;intmin_lenmin(s1.length(),s2.length());bool firsttrue;intpos-1;for(inti0;imin_len;i){if(s1[i]s2[i]firsts1[i]As1[i]G){intdates1[i]-A1;posi;firstfalse;switch(date){case1:coutMON ;break;case2:coutTUE ;break;case3:coutWED ;break;case4:coutTHU ;break;case5:coutFRI ;break;case6:coutSAT ;break;case7:coutSUN ;break;default:break;}break;}}for(intipos1;imin_len;i){if(s1[i]s2[i]!first){if(s1[i]0s1[i]9){printf(%02d:,s1[i]-0);break;}if(s1[i]As1[i]N){printf(%d:,s1[i]-A10);break;}}}min_lenmin(s3.length(),s4.length());for(inti0;imin_len;i){if(s3[i]s4[i]((s3[i]as3[i]z)||(s3[i]As3[i]Z))){printf(%02d,i);break;}}return0;}
RELATED

相关推荐

c语言面试题常见易错,易混淆,比较难区分汇总

c语言面试题常见易错,易混淆,比较难区分汇总

常见易错,易混淆,比较难区分的关键点: 1.关键字共有32个,如下: char、double、enum、float、int、long、short、signed、struct、union、unsigned、void、for、do、while、break、continue、if、else、goto、switch、c…

📅 2026/9/15 6:08:26
物联网设备安全芯片SE050与PIC18F86J10集成方案

物联网设备安全芯片SE050与PIC18F86J10集成方案

1. 为什么物联网设备需要硬件级安全芯片?在物联网设备爆炸式增长的今天,安全性已成为制约行业发展的关键瓶颈。去年某知名智能家居品牌曝出的远程控制漏洞事件,直接导致超过200万台设备被恶意操控。传统基于软件的安全方案在资源受限的嵌入式…

📅 2026/8/8 3:04:38
M9A技术深度解析:基于MaaFramework的《重返未来:1999》自动化引擎

M9A技术深度解析:基于MaaFramework的《重返未来:1999》自动化引擎

M9A技术深度解析:基于MaaFramework的《重返未来:1999》自动化引擎 【免费下载链接】M9A 重返未来:1999 小助手 | Assistant For Reverse: 1999 项目地址: https://gitcode.com/gh_mirrors/m9/M9A M9A是一款基于MaaFramework图像识别框…

📅 2026/7/31 2:31:11
MORE NEWS

更多资讯

📰

Voyager 資料夾管理指南:為 Gemini 與 AI Studio 的 AI 對話打造真正的「檔案系統」

AI 应用前端 【免费下载链接】voyager Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any websites, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;其中的提示词管理器可用…

📰

gatsby-source-graphql 插件全解析:将任意第三方 GraphQL API 缝合进 Gatsby 数据层

前端静态站点Web框架 【免费下载链接】gatsby React-based framework with performance, scalability, and security built in. 项目地址: https://gitcode.com/gh_mirrors/ga/gatsby 点击查看 免费下载 本篇技术指南以 gatsby-source-graphql 插件的 CHANGELOG 版…

📰

Lightweight Charts v3 到 v4 迁移指南:破坏性变更逐项分析与实战改造方案

Lightweight Charts v3 到 v4 迁移指南:破坏性变更逐项分析与实战改造方案 【免费下载链接】lightweight-charts Performant financial charts built with HTML5 canvas 项目地址: https://gitcode.com/gh_mirrors/li/lightweight-charts 本指南以 Lightweig…

📰

FoundationDB 存储基准测试上 RAM Disk:mako_storage_bench.sh 在 okteto 开发 Pod 上的 tmpfs 实践指南

分布式数据库KV存储数据库后端 【免费下载链接】foundationdb FoundationDB - the open source, distributed, transactional key-value store 项目地址: https://gitcode.com/gh_mirrors/fo/foundationdb 点击查看 免费下载 mako_storage_bench.sh 是 FoundationD…

📰

Trigger.dev SDK 公共包修改规范:Changesets 发布流程、版本策略与 @trigger.dev/core 子路径导入指南

AI Agent后端任务调度开发工具可观测性AI 应用 【免费下载链接】trigger.dev Trigger.dev – build and deploy durable AI agents and workflows 项目地址: https://gitcode.com/gh_mirrors/tr/trigger.dev 点击查看 免费下载 本篇指南围绕仓库内的 .claude/rules…

📰

swagger-codegen 生成的 Android Volley 客户端中 Pet 模型完整解析

开发工具代码生成API设计 【免费下载链接】swagger-codegen swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition. 项目地址: http…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

读完文章,想聊聊您的网站?

告诉我们您的行业与需求,资深顾问一对一梳理方案与报价,全程免费。

📞 💬