結果

問題 No.264 じゃんけん
ユーザー Rin
提出日時 2015-08-23 21:31:03
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 24 ms / 5,000 ms
コード長 505 bytes
コンパイル時間 27 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-07-18 13:05:00
合計ジャッジ時間 623 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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