結果
問題 |
No.264 じゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-08-23 21:28:57 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 497 bytes |
コンパイル時間 | 28 ms |
コンパイル使用メモリ | 6,684 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-07-18 13:04:58 |
合計ジャッジ時間 | 616 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) ) )