Java实现P5713 【深基3.例5】洛谷团队系统

昨天继续把之前写的东西修改好了,没来得及写,已经进入四月了,还在基础题有点慢,之后要加油哇!

在这里插入图片描述

import java.io.IOException;
import java.util.Scanner;

public class Main {
    
    
	@SuppressWarnings("resource")
	public static void main(String[] args) throws IOException{
    
    
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		if(n*5<11+3*n) {
    
    
			System.out.println("Local");
		}else {
    
    
			System.out.println("Luogu");
		}
	}
}

思路:比较不同n下在洛谷上传的时间与本地上传的时间,谁短用谁。
注意:时间相同用洛谷,因为只有本地时间短才选择本地,相同不属于短。

猜你喜欢

转载自blog.csdn.net/jinyeran/article/details/115489363
今日推荐