結果

問題 No.682 Average
ユーザー nobigomu
提出日時 2018-05-13 11:30:13
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 09:53:21
合計ジャッジ時間 696 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (a, b)
	local t,r=(a+b)%3~=0 and 3-(a+b)%3 or 0,0
	for i=a,b do if i%3==t then r=r+1 end end
	return r
end)(io.stdin:read("*n"), io.stdin:read("*n")))
0