题解 | #访友#

访友

http://www.nowcoder.com/practice/b8e21f5816874425836b7d32011f46b0

import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int cnt = x / 5;
        if(x % 5 != 0) {
            cnt++;
        }
        System.out.println(cnt);
    }
}
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务