
codeforces
一条咸鱼MOON
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CF水题-337A. Puzzles
The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye present for hernstudents and give each of them a jigsaw puzzle (which, as wikipedia states, is a til...原创 2020-09-23 19:36:54 · 268 阅读 · 0 评论 -
CF水题-486A. Calculating Function
#include <iostream> using namespace std; long long cal(long long n) { if(n%2==0) return n/2; else return n/2+(-1)*n; } int main() { long long n; cin>>n; cout<<cal(n); return 0; }原创 2020-09-20 22:04:50 · 242 阅读 · 0 评论