結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-27 22:44:02 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 5,000 ms |
| コード長 | 574 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 39,296 KB |
| 最終ジャッジ日時 | 2024-10-13 00:42:05 |
| 合計ジャッジ時間 | 1,134 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
function Main(input) {
input = input.split(' ');
let mine = parseInt(input[0]);
let yours = parseInt(input[1]);
if (mine === yours) {
console.log('Drew');
} else if (mine === 0) {
if (yours === 1) {
console.log('Won');
} else {
console.log('Lost');
}
} else if (mine === 1) {
if (yours === 2) {
console.log('Won');
} else {
console.log('Lost');
}
} else if (mine === 2) {
if (yours === 0) {
console.log('Won');
} else {
console.log('Lost');
}
}
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));