結果

問題 No.2323 Nafmo、A+Bをする
ユーザー 👑 tatt61880tatt61880
提出日時 2023-07-09 23:33:09
言語 Kuin
(KuinC++ v.2021.9.17)
結果
RE  
実行時間 -
コード長 258 bytes
コンパイル時間 3,067 ms
コンパイル使用メモリ 144,908 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-10-01 03:40:42
合計ジャッジ時間 5,192 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 3 ms
4,380 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var a: int :: cui@inputInt()
	var b: int :: cui@inputInt()
	
	var x: int :: a + b
	var ans: int :: 0
	var d: int :: 1
	while(x <> 0)
		if(x % 10 = 1)
			do ans :+ d
		end if
		do d :* 2
		do x :/ 10
	end while
	do cui@print("\{ans}\n")
end func
0