結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-14 15:13:53 |
| 言語 | JavaScript (node v26.7.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 5,000 ms |
| + 452µs | |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 3 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 48,640 KB |
| 最終ジャッジ日時 | 2026-09-08 21:22:13 |
| 合計ジャッジ時間 | 3,668 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}