最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

算法競(jìng)賽2021 ICPC Southeastern Europe Regional Contest_A-series

2022-04-08 15:48 作者:Clayton_Zhou  | 我要投稿


//#include "stdafx.h"

#include<cstdio>

#include<cctype>

#include<vector>

#include<algorithm>

?#include <queue>


//using namespace std;

??

int n=3;??


int a[1100000]={2021, 11, 21, 10};

int b[1100000]={10, 21, 11, 2021};

?


int main(){

?

int x,i,j;

//*

? scanf("%d",&n);? ?

for( x=0;x<=n;x++)

scanf("%d",&a[x]);?

for( x=0;x<=n;x++)

scanf("%d",&b[x]);??

// */


long long cut=0;

? ?

int tmp=0;

for(i=n;i>=0;i--)

{

tmp=(b[i]-a[i]+tmp+1)/2;

if(tmp>0)cut+=tmp;

else tmp=0;

//printf("%d\n",tmp);


}?

if(tmp)printf("-1\n");

else printf("%lld\n",cut);

??

return 0;

}


算法競(jìng)賽2021 ICPC Southeastern Europe Regional Contest_A-series的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
怀来县| 五常市| 阳信县| 长沙市| 江华| 天全县| 上饶县| 广水市| 石柱| 调兵山市| 乌拉特中旗| 丘北县| 涟源市| 湖州市| 平利县| 武鸣县| 年辖:市辖区| 安义县| 三都| 苍山县| 青河县| 长沙县| 电白县| 连云港市| 甘泉县| 杭州市| 永定县| 班戈县| 闻喜县| 房产| 孙吴县| 衡山县| 金湖县| 高阳县| 金寨县| 长治县| 霞浦县| 静海县| 平罗县| 巨鹿县| 海安县|