結果
| 問題 |
No.1198 お菓子配り-1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-16 23:32:04 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-23 01:50:12 |
| 合計ジャッジ時間 | 1,095 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 RE * 2 |
| other | WA * 12 RE * 2 |
ソースコード
a = io.read()
if #a == 1 then
a = tonumber(a)
z = {false, false, true, false, true, false, true, true, true}
print(a[z] and "Yes" or "No")
else
a = tonumber(a:sub(#a - 1, #a))
if a % 4 == 0 or a % 2 == 1 then
print("Yes")
else
print("No")
end
end