結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-08-23 21:29:58 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 499 bytes |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 6,812 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2024-07-18 13:04:59 |
| 合計ジャッジ時間 | 653 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
ソースコード
(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)
)
)
)
Rin