結果

問題 No.264 じゃんけん
ユーザー RinRin
提出日時 2015-08-23 21:31:03
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 505 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 5,400 KB
実行使用メモリ 11,816 KB
最終ジャッジ日時 2023-09-25 16:38:01
合計ジャッジ時間 869 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,700 KB
testcase_01 AC 19 ms
11,516 KB
testcase_02 AC 18 ms
11,592 KB
testcase_03 AC 17 ms
11,580 KB
testcase_04 AC 18 ms
11,692 KB
testcase_05 AC 17 ms
11,816 KB
testcase_06 AC 17 ms
11,680 KB
testcase_07 AC 18 ms
11,608 KB
testcase_08 AC 18 ms
11,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(let (
      (Me (read (current-input-port)))
      (Enemy (read (current-input-port)))
      )
    (begin
    (cond
        ((= Me Enemy) (display "Drew"))
        ((and (= Me 0) (= Enemy 1)) (display "Won"))
        ((and (= Me 0) (= Enemy 2)) (display "Lost"))
        ((and (= Me 1) (= Enemy 0)) (display "Lost"))
        ((and (= Me 1) (= Enemy 2)) (display "Won"))
        ((and (= Me 2) (= Enemy 0)) (display "Won"))
        ((and (= Me 2) (= Enemy 1)) (display "Lost"))
    )
    (newline)
    )
)
0