uva 10494 - If We Were a Child Again If We Were a Child Again Input: standard inputOutput: standard output Time Limit: 7 seconds “Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that I’d not make any mist…
用java写的大数基本操作,java要求的格式比较严谨. import java.util.*; import java.math.*; public class Main { public static void main(String args[]) { Scanner cin = new Scanner(System.in); BigInteger a,b,ans; String c; b = BigInteger.valueOf(); a = BigInteger.valueOf();…
点此连接到UVA10494 思路: 采取一种, 边取余边取整的方法, 让这题变的简单许多~ AC代码: #include<stdio.h> #include<string.h> int main() { long long mod; long long k, tmp; int len; int ans[10010]; char num[10010], ch[2]; while(scanf("%s%s%lld", num, ch, &mod) != EOF…
Problem C If We Were a Child Again Input: standard input Output: standard output seconds "Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that I'd not make any mistake this time!!" Says a smart univ…