字母数(蓝桥杯)

 

import java.util.Scanner;
public class Main {
  public static boolean judge(int n){
    int t=0;
    while(n>0)
     { t=n%16;
    if(t<10)
    return false;
    n/=16;}
    return true;
    
  }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        for(int i=2023;;i++){
          if(judge(i))
         { System.out.println(i);
         break;
         }
        }
        scan.close();
    }
}

相关推荐

  1. 2024-04-09 15:42:04       13 阅读
  2. 连号区间

    2024-04-09 15:42:04       20 阅读
  3. 的分解

    2024-04-09 15:42:04       18 阅读
  4. python

    2024-04-09 15:42:04       14 阅读
  5. 刷题-星星

    2024-04-09 15:42:04       13 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-09 15:42:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-09 15:42:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-09 15:42:04       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-09 15:42:04       20 阅读

热门阅读

  1. 在react项目中使用redux和reduxjs/toolkit

    2024-04-09 15:42:04       16 阅读
  2. 常见的行为识别算法及视频处理算法

    2024-04-09 15:42:04       13 阅读
  3. 搞懂了XML!

    2024-04-09 15:42:04       14 阅读
  4. 在Linux删除几天前的日志文件

    2024-04-09 15:42:04       12 阅读
  5. Spring与Spring Boot的区别和联系

    2024-04-09 15:42:04       13 阅读
  6. html自定义禁用状态下且已选中的checkbox

    2024-04-09 15:42:04       13 阅读
  7. 对称排序(蓝桥杯)

    2024-04-09 15:42:04       13 阅读
  8. 软件版权登记的条件

    2024-04-09 15:42:04       15 阅读
  9. Go语言中如何实现多态

    2024-04-09 15:42:04       13 阅读
  10. Qt-Mat转QImage

    2024-04-09 15:42:04       10 阅读
  11. leetcode回忆法-1两数之和

    2024-04-09 15:42:04       13 阅读
  12. 【c++&leetcode】1. Two Sum

    2024-04-09 15:42:04       12 阅读
  13. [LeetCode][LCR131]砍竹子 I——推测规律

    2024-04-09 15:42:04       14 阅读