結果

問題 No.264 じゃんけん
ユーザー ゆうPゆうP
提出日時 2024-03-02 14:46:42
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 11,213 ms
コンパイル使用メモリ 217,732 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-03-02 14:46:55
合計ジャッジ時間 12,269 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 1 ms
6,548 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
6,548 KB
testcase_05 AC 1 ms
6,548 KB
testcase_06 AC 1 ms
6,548 KB
testcase_07 AC 1 ms
6,548 KB
testcase_08 AC 1 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// No.264 じゃんけん
package main

import (
	"fmt"
)

func replace(x, y, z int) int {
	if x == 0 {
		return 3
	}
	return x
}

func main() {
	var n, k int // 自分, 相手
	fmt.Scanf("%d %d", &n, &k)
	if n == k {
		fmt.Println("Drew")
	} else if replace(k, 0, 3) > n {
		fmt.Println("Won")
	} else {
		fmt.Println("Lost")
	}
}
0