結果

問題 No.1893 Cycle
ユーザー sysnote8main
提出日時 2023-05-07 19:32:00
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 484 bytes
コンパイル時間 3,212 ms
コンパイル使用メモリ 75,520 KB
実行使用メモリ 54,452 KB
最終ジャッジ日時 2024-11-24 18:44:18
合計ジャッジ時間 7,268 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class GetPointOnCircle {
    public static void log(Object obj) {
        System.out.println(obj.toString());
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a>b) {
            int g = b;
            b=a;
            a=g;
        }
        if(4<=a) {
            log(a-4);
        } else {
            log(b+4);
        }
    }
}

0