結果

問題 No.3209 Cherry Calculation
ユーザー ks2m
提出日時 2025-07-25 21:21:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 6,247 ms
コンパイル使用メモリ 82,860 KB
実行使用メモリ 48,180 KB
最終ジャッジ日時 2025-07-25 21:21:27
合計ジャッジ時間 10,352 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int x = 10 - a;
		int y = a + b - 10;
		System.out.println(x + " " + y);
	}
}
0