結果

問題 No.264 じゃんけん
ユーザー nohopennohopen
提出日時 2019-02-10 10:59:54
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 11,772 KB
最終ジャッジ日時 2023-09-19 08:58:55
合計ジャッジ時間 1,248 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,664 KB
testcase_01 AC 19 ms
11,748 KB
testcase_02 AC 19 ms
11,528 KB
testcase_03 AC 18 ms
11,664 KB
testcase_04 AC 18 ms
11,588 KB
testcase_05 AC 18 ms
11,608 KB
testcase_06 AC 18 ms
11,588 KB
testcase_07 AC 18 ms
11,568 KB
testcase_08 AC 18 ms
11,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (judge n k)
  (cond
    ((= n k) "Drew")
    ((and (= n 0) (= k 1)) "Won")
    ((and (= n 1) (= k 2)) "Won")
    ((and (= n 2) (= k 0)) "Won")
    (else "Lost")))

(define (main args)
  (print (judge (read) (read))) 0)
0