結果
| 問題 | No.442 和と積 | 
| コンテスト | |
| ユーザー |  takeya_okino | 
| 提出日時 | 2019-08-21 22:01:48 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 322 bytes | 
| コンパイル時間 | 2,244 ms | 
| コンパイル使用メモリ | 74,624 KB | 
| 実行使用メモリ | 54,392 KB | 
| 最終ジャッジ日時 | 2024-10-09 20:36:11 | 
| 合計ジャッジ時間 | 5,630 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 WA * 7 | 
ソースコード
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long a = sc.nextLong();
    long b = sc.nextLong();
    System.out.println(gcd(a, b));
  }
  public static long gcd(long a, long b) {
    if(b == 0) return a;
    return gcd(b, (a % b));
  }
}
            
            
            
        