結果
問題 |
No.742 にゃんにゃんにゃん 猫の挨拶
|
ユーザー |
👑 |
提出日時 | 2019-04-28 11:21:35 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
TLE
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-12-15 07:24:33 |
合計ジャッジ時間 | 5,203 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 TLE * 1 |
ソースコード
ior = io.read local n = ior("*n") local dst = {} for i = 1, n do dst[i] = ior("*n") end local cnt = 0 for i = 1, n - 1 do for j = i + 1, n do if(dst[j] <= dst[i]) then cnt = cnt + 1 end end end print(cnt)