C语言
万时
这个作者很懒,什么都没留下…
展开
-
收集的一些小玩意
#define setbit(x,y) x|=(1<<y) //指定的某一位数置1 #define clrbit(x,y) x&=~(1<<y) //指定的某一位数置0 #define reversebit(x,y) x^=(1<<y) //指定的某一位数取反 #define ge...原创 2020-02-18 15:14:42 · 156 阅读 · 0 评论 -
杭电oj第1000题—— A + B Problem
题述如下: Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. \\注意,此处强调一行一输出,即输出后跟“\n” S...原创 2019-02-15 11:23:16 · 1483 阅读 · 0 评论 -
杭电oj第1001题—— Sum Problem
题述如下 Problem Description In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. Input The input will consist of a series of integers n, one integer per line. Output For each cas...原创 2019-02-15 11:43:43 · 826 阅读 · 0 评论