結果
問題 |
No.71 そろばん
|
ユーザー |
|
提出日時 | 2018-12-23 01:18:46 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 121 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 10:21:57 |
合計ジャッジ時間 | 785 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
print((function (n) local t=bit.rshift(n,1) return bit.band(n,1)==0 and (t+2)*t or (t+3)*t+1 end)(io.stdin:read("*n")))