B. National Projecttime

B. National Projecttime
limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
Your company was appointed to lay new asphalt on the highway of length nnSkipping the repair is necessary because of the climate. The climate in your region is periodical: there are ggbbggbbYou can be sure that you start repairing at the start of a good season, in other words, days 1,2,…,g1,2,…,gYou don’t really care about the quality of the highway, you just want to make sure that at least half of the highway will have high-quality pavement. For example, if the n=5n=533n=4n=422What is the minimum number of days is needed to finish the repair of the whole highway?InputThe first line contains a single integer TT1≤T≤1041≤T≤104Next TTnnggbb1≤n,g,b≤1091≤n,g,b≤109OutputPrint TTExampleinputCopy3
5 1 1
8 10 10
1000000 1 1000000
outputCopy5
8
499999500000
NoteIn the first test case, you can just lay new asphalt each day, since days 1,3,51,3,5In the second test case, you can also lay new asphalt each day, since days 1188
在这里插入图片描述

// 使用strcpy函数将S_cifcdetail结构体中的字段值复制到T_restax表的相应字段中 strcpy(T_restax.mesg_type, S_cifcdetail.cust_status); // 复制S_cifcdetail结构体中的cust_status字段值到T_restax表的mesg_type字段 strcpy(T_restax.acct_type, S_cifcdetail.deal_cert_type); // 复制S_cifcdetail结构体中的deal_cert_type字段值到T_restax表的acct_type字段 strcpy(T_restax.self_certification, S_cifcdetail.finance_cert_type); // 复制S_cifcdetail结构体中的finance_cert_type字段值到T_restax表的self_certification字段 strcpy(T_restax.holder_type, S_cifcdetail.telex_no); // 复制S_cifcdetail结构体中的telex_no字段值到T_restax表的holder_type字段 strcpy(T_restax.addr_country_code, S_cifcdetail.national_code1); // 复制S_cifcdetail结构体中的national_code1字段值到T_restax表的addr_country_code字段 strcpy(T_restax.city_en, S_cifcdetail.addr3); // 复制S_cifcdetail结构体中的addr3字段值到T_restax表的city_en字段 strcpy(T_restax.res_country_code, S_cifcdetail.national_code3); // 复制S_cifcdetail结构体中的national_code3字段值到T_restax表的res_country_code字段 strcpy(T_restax.tin_issuedby, S_cifcdetail.national_code4); // 复制S_cifcdetail结构体中的national_code4字段值到T_restax表的tin_issuedby字段 strcpy(T_restax.explanation, S_cifcdetail.base_bank_name); // 复制S_cifcdetail结构体中的base_bank_name字段值到T_restax表的explanation字段 strcpy(T_restax.bir_country_code, S_cifcdetail.national_code2); // 复制S_cifcdetail结构体中的national_code2字段值到T_restax表的bir_country_code字段 strcpy(T_restax.bir_country_name, S_cifcdetail.addr2); // 复制S_cifcdetail结构体中的addr2字段值到T_restax表的bir_country_name字段 strcpy(T_restax.nationality, S_cifcdetail.industry_code); // 复制S_cifcdetail结构体中的industry_code字段值到T_restax表的nationality字段
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值