結果

問題 No.442 和と積
ユーザー darknightdarknight
提出日時 2016-11-11 23:14:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 646 bytes
コンパイル時間 2,193 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 56,168 KB
最終ジャッジ日時 2023-09-18 06:21:21
合計ジャッジ時間 5,617 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,812 KB
testcase_01 AC 117 ms
55,780 KB
testcase_02 AC 117 ms
56,116 KB
testcase_03 AC 115 ms
55,840 KB
testcase_04 AC 117 ms
55,916 KB
testcase_05 AC 118 ms
55,328 KB
testcase_06 AC 117 ms
55,864 KB
testcase_07 AC 118 ms
55,772 KB
testcase_08 AC 116 ms
55,812 KB
testcase_09 AC 117 ms
55,692 KB
testcase_10 AC 118 ms
56,164 KB
testcase_11 AC 117 ms
55,680 KB
testcase_12 AC 116 ms
56,168 KB
testcase_13 AC 117 ms
55,720 KB
testcase_14 AC 118 ms
55,976 KB
testcase_15 AC 118 ms
55,456 KB
testcase_16 AC 119 ms
55,752 KB
testcase_17 AC 118 ms
55,972 KB
testcase_18 AC 119 ms
56,004 KB
testcase_19 AC 118 ms
56,012 KB
testcase_20 AC 118 ms
55,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.BigInteger;
 
public class Main {
	public static void main(String[] args) {
 
	Scanner sc  = new Scanner(System.in);
	String str = "";
        
    String str3  = sc.next();
    String str2 = sc.next();
    BigInteger big1 = new  BigInteger( str3 );
    BigInteger big2 = new BigInteger( str2 );
    
    BigInteger big3 = new  BigInteger( str3 );
    BigInteger big4 = new BigInteger( str2 );
    
    BigInteger big5 = big1.add(big2);
    BigInteger big6 = big3.multiply(big4);
    
   // BigInteger big7 =  gcd( big5, big6);
    

    System.out.print( big5.gcd(big6) );
        System.out.println( );
	}
}
0