結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-08-23 21:28:02 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 466 bytes |
| コンパイル時間 | 25 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 16,256 KB |
| 最終ジャッジ日時 | 2024-07-18 13:04:56 |
| 合計ジャッジ時間 | 657 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
ソースコード
(let (
(Me (read (current-input-port)))
(Enemy (read (current-input-port)))
(cond
((= Me Enemy) (display "Draw"))
((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"))
)
)
Rin