結果
問題 | No.264 じゃんけん |
ユーザー |
![]() |
提出日時 | 2015-09-22 13:34:06 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 23 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 122 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-19 08:36:45 |
合計ジャッジ時間 | 771 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
#!/usr/bin/env gosh (define judge '(1 2 0)) (let* ((lst (read (open-input-string (string-append "(" (read-line) ")")))) (i (car lst)) (you (cadr lst))) (cond ((= i you) (display "Drew")) ((= you (list-ref judge i)) (display "Won")) (else (display "Lost"))) (newline))