結果

問題 No.264 じゃんけん
ユーザー ducktailducktail
提出日時 2019-09-30 14:37:44
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 306 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 16,896 KB
最終ジャッジ日時 2024-04-14 08:03:40
合計ジャッジ時間 1,101 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
16,640 KB
testcase_01 AC 28 ms
16,640 KB
testcase_02 AC 28 ms
16,640 KB
testcase_03 AC 27 ms
16,640 KB
testcase_04 AC 26 ms
16,640 KB
testcase_05 AC 27 ms
16,640 KB
testcase_06 AC 27 ms
16,640 KB
testcase_07 AC 27 ms
16,640 KB
testcase_08 AC 26 ms
16,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use util.match)

(define (solve n k)
  (match (list n k)
         [(0 1) 'Won]
         [(1 2) 'Won]
         [(2 0) 'Won]
         [(1 0) 'Lost]
         [(2 1) 'Lost]
         [(0 2) 'Lost]
         [_ 'Drew]))

(define (main args)
  (let* ([n (read)]
         [k (read)])
    (print (solve n k)))
  0)
0