結果

問題 No.481 1から10
ユーザー heyanxxheyanxx
提出日時 2019-07-04 11:31:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 671 bytes
コンパイル時間 3,350 ms
コンパイル使用メモリ 73,904 KB
実行使用メモリ 53,504 KB
最終ジャッジ日時 2023-10-19 07:33:52
合計ジャッジ時間 4,536 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
53,504 KB
testcase_01 AC 57 ms
51,488 KB
testcase_02 AC 57 ms
53,484 KB
testcase_03 AC 59 ms
53,492 KB
testcase_04 AC 57 ms
52,524 KB
testcase_05 AC 57 ms
52,584 KB
testcase_06 AC 56 ms
53,484 KB
testcase_07 AC 56 ms
51,448 KB
testcase_08 AC 58 ms
53,484 KB
testcase_09 AC 57 ms
53,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test.demo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Youkicoder481 {

	public static void main(String[] args) {
		try {
			String[]str=input();
			int sum=0;
			for(int i=0;i<str.length;i++) {
				sum+=Integer.parseInt(str[i]);
			}
			System.out.println(55-sum);
			
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		

	}
	public static  String[] input() throws IOException {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		
		String str=br.readLine();
		String[]str2=str.split(" ");
		
		return str2;
	}
}
0