結果

問題 No.201 yukicoderじゃんけん
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-07 00:12:07
言語 Kuin
(KuinC++ v.2021.9.17)
結果
WA  
実行時間 -
コード長 551 bytes
コンパイル時間 2,207 ms
コンパイル使用メモリ 154,428 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-14 16:06:05
合計ジャッジ時間 3,145 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,348 KB
testcase_02 WA -
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 WA -
testcase_06 AC 2 ms
4,352 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,352 KB
testcase_10 AC 2 ms
4,352 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
4,352 KB
testcase_17 AC 2 ms
4,352 KB
testcase_18 WA -
testcase_19 AC 2 ms
4,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
out.cpp: 関数 ‘int64_t k_av(std::shared_ptr<Array_<char16_t> >, std::shared_ptr<Array_<char16_t> >)’ 内:
out.cpp:1836:1: 警告: 制御が非 void 関数の終りに到達しました [-Wreturn-type]
 1836 | }
      | ^

ソースコード

diff #

func main()
	var ss: [][]char
	do ss :: cui@input().split(" ")
	var sa: []char :: ss[0]
	var pa: []char :: ss[1]
	do ss :: cui@input().split(" ")
	var sb: []char :: ss[0]
	var pb: []char :: ss[1]
	
	var ans: []char :: "-1"
	var res: int :: f(sa, sb)
	if(res > 0)
		do ans :: sa
	elif(res < 0)
		do ans :: sb
	end if
	do cui@print("\{ans}\n")
	
	func f(sa: []char, sb: []char): int
		if(^sa <> ^sb)
			ret ^ sa - ^sb
		end if
		for i(0, ^sa - 1)
			if(sa[i] $ int <> sb[i] $ int)
				ret sa[i] $ int - sb[i] $ int
			end if
		end for
	end func
end func
0