HDOJ 1898 Sempr == The Best Problem Solver?
来源:互联网 发布:mac顶部工具栏 编辑:程序博客网 时间:2024/05/21 19:25
HDACM 1898
翻译题,求谁的余数小就OK
import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n-->0){ int a = sc.nextInt(); int b = sc.nextInt(); int t = sc.nextInt(); a = t%a; b = t%b; if (a>b) { System.out.println("Xiangsanzi!"); }else if (a==b) { System.out.println("Both!"); }else{ System.out.println("Sempr!"); } } sc.close(); }}
阅读全文
0 0
- hdoj 1898 Sempr == The Best Problem Solver?
- HDOJ 1898 Sempr == The Best Problem Solver?
- HDOJ(HDU) 1898 Sempr == The Best Problem Solver?(水题、、、)
- HDU 1898 Sempr == The Best Problem Solver?
- Sempr == The Best Problem Solver? 1898
- hdu1898 Sempr == The Best Problem Solver?
- HDU1898:Sempr == The Best Problem Solver?
- HDU1898 Sempr == The Best Problem Solver?【水题】
- HDU 1898 Sempr == The Best Problem Solver?(数学题)
- HDU 1898 Sempr == The Best Problem Solver?【英语题】
- 杭电 HDU ACM 1898 Sempr == The Best Problem Solver?
- Best Solver
- hdoj 5451 Best Solver 【求循环节 + 矩阵快速幂】
- HDOJ Choose the best route
- hdoj-5883-The Best Path
- hdoj 5883 The Best Path
- hdoj 3666 THE MATRIX PROBLEM
- HDOJ The Hardest Problem Ever
- postMan发送json
- 笔记是对一本好书最大的敬意
- 小谈大前端时代
- SAP入门书籍网站收集-1
- android studio 调试android源码
- HDOJ 1898 Sempr == The Best Problem Solver?
- 梳理java中的各种流概念
- Maven·2nd(Eclipse)
- 如何去学习
- 使用pygal绘制世界地图时的两个报错
- MySQL设置log-bin后服务器重启失败的解决办法和说明
- 万能地图下载器“新建任务”对话框功能使用说明
- 大话设计模式读书笔记之桥接模式
- JZOJ 5485 字符串