討論串[請益] 沒有想像中簡單的小問題
共 34 篇文章

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者yauhh (喲)時間16年前 (2009/03/23 05:09), 編輯資訊
0
0
0
內容預覽:
ANSI Common-Lisp 版本:. (setf x '(3 4 5 6 7)). (defun repeat-cdr (x i). (cond ((= i 0) x). (t (repeat-cdr (cdr x) (- i 1))). ). ). (defun item (x i). (c
(還有979個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ykjiang (York)時間16年前 (2009/03/23 02:03), 編輯資訊
0
0
0
內容預覽:
import sys. def print_row(s, m, n):. sp = ' '*s. if sp:. sys.stdout.write(' '*s). for i in range(m):. sys.stdout.write(str((i+n)%10)). sys.stdout.writ
(還有53個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者yauhh (喲)時間16年前 (2009/03/23 01:25), 編輯資訊
0
0
0
內容預覽:
<body>. <div style="text-align: center; width: 5ex;">. 3<br>. 345<br>. 34567<br>. 345<br>. 3</div>. </body>. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 59.112

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者wowtiger (小虎)時間16年前 (2009/03/22 17:24), 編輯資訊
0
0
0
內容預覽:
來亂+1. #include <math.h>. #include <stdio.h>. int main() {. for( int i=0 ; i<5 ; ++i ) {. printf("%.5s\n"," \b 34567"+(2-abs(i-2))*2);. }. }. --. 發信站

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者godfat (godfat 真常)時間16年前 (2009/03/15 00:34), 編輯資訊
0
0
1
內容預覽:
昨天在 Java 板上提到 Scala, 不禁就想試試看:. class Star(max: Int){. val mid = max / 2 + 1. def row(n: Int): List[Int] =. for (i <- List.range(mid, max + mid - 2 * (
(還有1947個字)