結果

問題 No.683 Two Operations No.3
ユーザー nobigomunobigomu
提出日時 2018-05-13 12:01:09
言語 Lua
(LuaJit 2.1.1696795921)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-10 18:42:57
合計ジャッジ時間 876 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

local ffi = require 'ffi'
local C, ct = ffi.C, ffi.typeof 'uint64_t[1]'
ffi.cdef 'int scanf(const char *, ...);'

print((function (a, b)
	C.scanf("%ld%ld",a,b)
	if b[0]%2==0 and a[0]*2==b[0] then return "Yes" end
	if b[0]%2==1 and a[0]+1==b[0] then return "Yes" end
	return "No"
end)(ct(), ct()))
0