C
çºç«¯ ã©ãªããcè¨èªããã°ã©ãã³ã°ãå¾æãªæ¹ãããã£ãããã¾ãããæãã¦ããã ãããã§ããç°¡åãªåãã§ãæ¥ããããã®ã§ãããç»åã®åãã®çããæãã¦ããã ãããã§ããintåã©ããã®æ¼ç®ã§å°æ°ã®åºãæ¹ãåãããªãã§ãã#cè¨èª #ããã°ã©ãã³ã° #ãâ¦
解ããåé¡ Problem 1000: A + B Problem http://poj.org/problem?id=1000 åé¡èª¬æ a + bãè¨ç®ããï¼ Input äºã¤ã®æ´æ°aï¼b (0 Output a + bã®è¨ç®çµæãåºåããï¼ Sample Input (stdin) 1 2 Sample Output (stdout) 3 解ç PKUã«ã¯Cã®ã³ã¼ããsubmitã§ãâ¦
Cã§ä½ã£ã¦ã¿ã¾ããï¼ã½ã¼ã¹ã¯githubã«ããã¾ãï¼ã¨ã©ã¼å¦çã¨ãçµæ§é©å½ãªã®ã§ãã¾ãåããªãå ´åãããããï¼ http://github.com/mickey24/laugh å®è¡ããã«ã¯ãããããOpenCVãã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãï¼ $ git clone git://github.com/mickeyâ¦
ãªãã¹ãå¤å´ããèªã¿ã¨ãã¨ãããçãªãã¨ã以åã©ããã§è¦ããã ãã©å¿ãã¦ãã¾ã£ãã®ã§ï¼ã¡ã¢ç¨åº¦ã«æ®ãã¦ããï¼signalé¢æ°ãä¾ã«ãã¦ã¿ãï¼ ãããsignalé¢æ°ã®ãããã¿ã¤ã宣è¨æï¼ä½ã®ãã£ã¡ãã¨ããæãï¼ void (*signal(int sig, void (*func)(int))â¦
ä¾ãã°ãããªæãã§floor()ã使ãCã®ããã°ã©ã test.cããã£ãã¨ãã¦ã /* test.c */ #include <stdio.h> #include <math.h> int main() { printf("%d\n", (int)floor(1.5)); return 0; } ãã®ã¾ã¾gccã§ã³ã³ãã¤ã«ãããã¨ããã¨ã¨ã©ã¼ã«ãªãå ´åãããã $ gcc test.c /tmp/c</math.h></stdio.h>â¦