結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー nobigomu
提出日時 2018-03-27 17:23:53
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-25 12:48:34
合計ジャッジ時間 875 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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