标签:output php script 去除 upper acea panel div next
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2057
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 35905 Accepted Submission(s):
14614
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner inScanner = new Scanner(System.in); while(inScanner.hasNext()) { long l = Long.parseLong(inScanner.next().replaceAll("\\+", ""),16) + Long.parseLong(inScanner.next().replaceAll("\\+", ""),16); if(l<0) { System.out.println("-" + Long.toHexString(-l).toUpperCase()); } else { System.out.println(Long.toHexString(l).toUpperCase()); } } } }
(JAVA对进制的运算)A + B Again hdu2057 要复习
标签:output php script 去除 upper acea panel div next
原文地址:https://www.cnblogs.com/Weixu-Liu/p/9674229.html