結果
| 問題 |
No.683 Two Operations No.3
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-05-13 12:01:09 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 49 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 09:53:22 |
| 合計ジャッジ時間 | 675 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
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()))
nobigomu