結果
問題 | No.207 世界のなんとか |
ユーザー | Rin |
提出日時 | 2015-08-23 20:37:23 |
言語 | Scheme (Gauche-0.9.14) |
結果 |
OLE
|
実行時間 | - |
コード長 | 502 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 5,332 KB |
実行使用メモリ | 19,924 KB |
最終ジャッジ日時 | 2023-09-25 16:36:57 |
合計ジャッジ時間 | 12,582 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | OLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
ソースコード
(define (CheckThree x) (let loop((i x)) (if (= (modulo i 10) 3) #t (if (> i 13) (loop (floor (/ i 10))) #f)))) (let ( (From (read (current-input-port))) (To (read (current-input-port))) ) (let loop((i From)) (begin (when (or (= (modulo i 3) 0 ) (CheckThree i)) (begin (write i) (newline))) (unless (= i To) (loop (+ i 1))) ) ) )