結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー n_getn_get
提出日時 2022-07-13 13:49:17
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 12,852 KB
最終ジャッジ日時 2023-09-06 22:37:21
合計ジャッジ時間 2,616 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
12,720 KB
testcase_01 AC 24 ms
12,564 KB
testcase_02 AC 24 ms
12,736 KB
testcase_03 AC 25 ms
12,712 KB
testcase_04 AC 24 ms
12,624 KB
testcase_05 AC 24 ms
12,752 KB
testcase_06 AC 25 ms
12,600 KB
testcase_07 AC 25 ms
12,580 KB
testcase_08 AC 25 ms
12,600 KB
testcase_09 AC 25 ms
12,852 KB
testcase_10 AC 25 ms
12,620 KB
testcase_11 AC 25 ms
12,720 KB
testcase_12 AC 25 ms
12,580 KB
testcase_13 AC 25 ms
12,572 KB
testcase_14 AC 25 ms
12,644 KB
testcase_15 AC 25 ms
12,564 KB
testcase_16 AC 24 ms
12,652 KB
testcase_17 AC 25 ms
12,692 KB
testcase_18 AC 25 ms
12,648 KB
testcase_19 AC 24 ms
12,780 KB
testcase_20 AC 24 ms
12,572 KB
testcase_21 AC 25 ms
12,580 KB
testcase_22 AC 25 ms
12,568 KB
testcase_23 AC 24 ms
12,696 KB
testcase_24 AC 24 ms
12,584 KB
testcase_25 AC 25 ms
12,756 KB
testcase_26 AC 24 ms
12,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let loop[[n (read)][4? #f][6? #f]]
     (cond
         [(zero? n) (print (if (and 4? 6?) "Beautiful" "..."))]
         [(= 4 (mod n 10)) (loop (quotient n 10) #t 6?)]
         [(= 6 (mod n 10)) (loop (quotient n 10) 4? #t)]
         [else (loop (quotient n 10) 4? 6?)]))
0