結果

問題 No.687 E869120 and Constructing Array 1
ユーザー G2G2
提出日時 2018-05-27 02:37:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 159 ms / 1,000 ms
コード長 395 bytes
コンパイル時間 3,478 ms
コンパイル使用メモリ 74,008 KB
実行使用メモリ 56,992 KB
最終ジャッジ日時 2023-09-11 03:48:24
合計ジャッジ時間 5,797 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
56,692 KB
testcase_01 AC 154 ms
56,856 KB
testcase_02 AC 157 ms
56,748 KB
testcase_03 AC 154 ms
56,664 KB
testcase_04 AC 159 ms
56,948 KB
testcase_05 AC 158 ms
56,540 KB
testcase_06 AC 158 ms
56,768 KB
testcase_07 AC 157 ms
56,556 KB
testcase_08 AC 155 ms
56,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

	import java.util.Scanner;
	public class no687 {
		public static void main(String[] args){
			Scanner s = new Scanner(System.in);
			int num = s.nextInt();
			int a[] = {1,2,3,4,5,6,7,8,9,10};
			int b[] = {1,2,3,4,5,6,7,8,9,10};
			for(int i=0;i<=9;i++){
				for(int j=0;j<=9;j++){
					if(num==a[i]+b[j]){
						System.out.println(a[i]+" "+b[j]);
						System.exit(0);
					}
				}
			}
		}
	}
0