結果

問題 No.446 ゆきこーだーの雨と雪 (1)
コンテスト
ユーザー nobigomu
提出日時 2018-03-27 17:23:53
言語 Lua
(LuaJit 2.1.1767980792)
コンパイル:
luajit -b _filename_ a.out
実行:
luajit _filename_
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 215 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 50 ms
コンパイル使用メモリ 7,968 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2026-03-11 21:24:04
合計ジャッジ時間 998 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

print((function (pred, s1, s2)
	return pred(s1) and pred(s2) and "OK" or "NG"
end)(function (s)
	return (s == "0" or s == s:match("[1-9]%d*")) and tonumber(s) <= 12345
end, io.stdin:read("*l"), io.stdin:read("*l")))
0