当前位置:网站首页>Sakura Substring思维
Sakura Substring思维
2022-04-21 06:21:00 【Bzdhxs_nt】
思路
思维题
发现 m 与 0 交错出现值最大
signed main()
{
int n,m;cin>>n>>m;
cout << n*(n-1)/2*m << endl;
int f = 0;
forr(i,1,n){
if(!f) cout << m << " ",f = 1;
else cout << 0 << " ",f = 0;
}
return 0;
}
版权声明
本文为[Bzdhxs_nt]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_51687628/article/details/124239869
边栏推荐
- vee-validate 验证
- 数据异构方案
- JDBC simple implementation of student management system
- [STM32] cubemx configuration diagram of 480mhz clock under 25MHz external crystal oscillator of h743
- 2020杭电多校赛第一场1006 Finding a MEX(hdu6756)
- 记一次mySQL慢sql优化
- 3. Date command problem in bat
- 3.bat中date命令问题
- 记录tx2上安装配置gestermer进而使用gst-rtsp-server
- 【KSZ8863】KSZ8863交换机芯片的信息汇总与打板验证结果
猜你喜欢

完全清理mysql-win

程序员也可以写小说

Making books with bookdown

Draw QQ charts with different distribution

Official account version update and introduction

canvas 绘制路飞

If I use Monet's color matching in scientific research pictures?

vscode 自定义注释

数据异构方案

Semantic feature extraction and simple word frequency display (wordcloud)
随机推荐
P1018 乘积最大题解
grub boot.S代码分析
毕业设计,疫情心理咨询系统截图查看
2020牛客暑期多校训练营第二场 I Interval题解
【SSM整合】4. 逻辑代码编写以及测试
R language drawing | drawing mixed density function diagram and adding quantile line
【LeetCode 19】删除链表的倒数第 N 个结点
Write tweets for one year and share five commonly used writing software
Linux启动MySQL报错
vee-validate 验证
判断资源是否被引用,判断资源是否被循环引用
Code analysis of distributed lock principle using ZK
Making books with bookdown
Learn SCI paper drawing skills (a)
最实用的Chrome插件
验证码的生成
CF6D Lizards and Basements 2题解
H. Are You Safe? 凸包裸题
云计算中存储继承知识
The jupyter notebook of win10 uses pyspark 2 3.2 error reporting problems solved