📌  相关文章
📜  在线将java代码转换为python - Python代码示例

📅  最后修改于: 2022-03-11 14:45:32.019000             🧑  作者: Mango

代码示例2
public static long countMax(List upRight) {
    // Write your code here
    int xl = 1;
    int yl = 1;

    xl = Integer.parseInt(upRight.get(1).split(" ")[0]);
    yl = Integer.parseInt(upRight.get(1).split(" ")[1]);

    for (int i=0; i Integer.parseInt(upRight.get((int) i).split(" ")[0]) ) xl = Integer.parseInt(upRight.get((int) i).split(" ")[0]);
        if (yl > Integer.parseInt(upRight.get((int) i).split(" ")[1])) yl = Integer.parseInt(upRight.get((int) i).split(" ")[1]);
    }

    return (yl * xl);
}