题解 | #访友#

访友

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);
    }
}
全部评论

相关推荐

04-01 11:08
中原工学院 Java
老六f:感觉这种培训期过了就找理由给你开了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务