From 2f674dc80f0382f1c3178f435714960734dc9d3c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 6 Jun 2020 21:33:13 +0700 Subject: Reorganize stuff from secondary school --- 11/Q-2017/cau2.scm | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 11/Q-2017/cau2.scm (limited to '11/Q-2017/cau2.scm') diff --git a/11/Q-2017/cau2.scm b/11/Q-2017/cau2.scm deleted file mode 100644 index 8a9b00f..0000000 --- a/11/Q-2017/cau2.scm +++ /dev/null @@ -1,5 +0,0 @@ -(define (cau2 s k m) (let* ((nk (quotient s k)) (nm (* (quotient k m) nk))) - (if (= nk 0) 0 (+ (cau2 (+ (remainder s k) (* (remainder k m) nk)) k m) nm)))) -(with-input-from-file "CAU2.INP" (lambda () - (with-output-to-file "CAU2.OUT" (lambda () - (format #t "~a\n" (cau2 (read) (read) (read))))))) -- cgit 1.4.1