è² æ°ãå«ã¾ããå°ä½ãè¨ç®ããå ´åãè¨èªã«è·¨ãã£ã¦ä¸æãªçµæãå¾ãããªãã -5 % 3 5 % -3 C -2 2 C++ -2 2 Java -2 2 Ruby 1 -1 Python 1 -1 Common Lisp 1 -1 ãã¦ããªããããªãã¨ãèµ·ããã®ãã¨ããã¨ãå°ä½ã«ã¯è¤æ°ã®å®ç¾©ãåå¨ããããã§ããã m ÷ n = q ⦠rãã® r ãå°ä½ã¨è¨ããã r ã®ç¯å²ã 0 ⤠r < n æå°éè² å°ä½ -n/2 ⤠r < n/2 絶対å¤æå°å°ä½ ã®äºã¤ã®å®ç¾©ããããä¸è¬çã«ã¯åè ã®ãæå°éè² å°ä½ããç¨ããããã§ããã m ãè² æ°ã n ãæ£æ°ã®å ´åã¯ãå ç¨ã®è¡¨ã«ããããã°ã©ãã³ã°è¨èªã¯ä»¥ä¸ã®ããã«åé¡ãããã 絶対å¤æå°å°ä½ C C++ Java æå°éè² å°ä½ Ruby Python Common Lisp ããããæå°éè² å°ä½ã§ã¯ r ãæ£æ°ã«ãªãå¿ è¦ããããå°ä½ã®çµæã
{{#tags}}- {{label}}
{{/tags}}