codeforces 669A Little Artem and Presents
来源:互联网 发布:js ajax get请求 编辑:程序博客网 时间:2024/05/21 00:20
点击打开链接
水题:判断能给多少个1和2就行了。
#include<cstdio>int main(){ int n; scanf("%d",&n); if(n%3==0) { printf("%d\n",n/3*2); } else { printf("%d\n",n/3*2+1); } return 0;}
阅读全文
0 0
- CodeForces 669A Little Artem and Presents
- CodeForces 669A Little Artem and Presents
- 【CodeForces】669A - Little Artem and Presents
- 【CodeForces】[669A]Little Artem and Presents
- CodeForces 669A Little Artem and Presents
- codeforces 669A Little Artem and Presents
- 【CodeForces】669A - Little Artem and Presents(找规律)
- A. Little Artem and Presents
- Codeforces Round #348 (div 2) A. Little Artem and Presents
- Codeforces 669A Little Artem and Presents(数量不同送礼物)
- CodeForces 669ALittle Artem and Presents
- 【codeforce】-#669A-Little Artem and Presents(数学,找规律)
- Codeforces Round #348 (VK Cup 2016 Round 2, Div. 2 Edition)-A. Little Artem and Presents(模拟)
- CodeForces 668A Little Artem and Matrix
- CodeForces 669B Little Artem and Grasshopper
- CodeForces 669D Little Artem and Dance
- CodeForces 669D Little Artem and Dance
- codeforces 669C Little Artem and Matrix
- [总结]java真是博大精深(三)
- AndroidStudio快捷键格式化代码
- 【javascript设计模式】2.Module(模块)模式
- shell脚本之变量
- Java动态代理机制详解
- codeforces 669A Little Artem and Presents
- 在idea中出现 错误Servlet.init() for servlet springmvc threw exception
- hadoop2.x之IO:压缩和解压缩
- pat:L1-039. 古风排版
- Java面试题大汇总
- HDU
- 从大三狗到工作狗的历程
- Python-Pandas(3)数据预处理
- 二分查找