結果

問題 No.750 Frac #1
ユーザー ldsybldsyb
提出日時 2019-09-19 03:34:18
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,812 KB
最終ジャッジ日時 2023-09-25 08:01:31
合計ジャッジ時間 2,562 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,668 KB
testcase_01 AC 18 ms
11,648 KB
testcase_02 WA -
testcase_03 AC 18 ms
11,716 KB
testcase_04 AC 18 ms
11,652 KB
testcase_05 AC 18 ms
11,764 KB
testcase_06 WA -
testcase_07 AC 18 ms
11,692 KB
testcase_08 AC 18 ms
13,812 KB
testcase_09 AC 18 ms
11,716 KB
testcase_10 AC 18 ms
11,676 KB
testcase_11 WA -
testcase_12 AC 18 ms
11,660 KB
testcase_13 AC 18 ms
11,672 KB
testcase_14 AC 18 ms
11,844 KB
testcase_15 AC 18 ms
11,712 KB
testcase_16 AC 19 ms
11,788 KB
testcase_17 AC 18 ms
11,812 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 18 ms
11,948 KB
testcase_21 AC 17 ms
11,816 KB
testcase_22 AC 18 ms
11,720 KB
testcase_23 AC 18 ms
11,704 KB
testcase_24 WA -
testcase_25 AC 18 ms
11,720 KB
testcase_26 WA -
testcase_27 AC 18 ms
11,656 KB
testcase_28 AC 18 ms
11,676 KB
testcase_29 AC 18 ms
11,728 KB
testcase_30 AC 18 ms
11,784 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(define n (read))
(define a '())
(let loop((i 0))
	(if (= i n)
		'()
		(begin
			(let ((p (read)) (q (read)))
				(set! a (cons (/ p q) a))
			)
			(loop (+ i 1))
		)
	)
)
(set! a (reverse (sort a)))
(for-each (lambda (x) (print (numerator x) " " (denominator x))) a)
0