結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2022-06-14 15:13:53 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 62 ms / 5,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 39,168 KB |
最終ジャッジ日時 | 2024-10-02 10:44:17 |
合計ジャッジ時間 | 2,863 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
const fs = require("fs"); const input = fs.readFileSync("/dev/stdin", "utf-8").trim(); const lines = input.split("\n"); const word = lines[0]; if (word === "0 0" || word === "1 1" || word === "2 2") { console.log("Drew"); } else if (word === "0 1" || word === "1 2" || word === "2 0") { console.log("Won"); } else if (word === "1 0" || word === "2 1" || word === "0 2") { console.log("Lost"); }