結果
問題 |
No.687 E869120 and Constructing Array 1
|
ユーザー |
![]() |
提出日時 | 2018-05-27 02:37:49 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 163 ms / 1,000 ms |
コード長 | 395 bytes |
コンパイル時間 | 3,369 ms |
コンパイル使用メモリ | 75,856 KB |
実行使用メモリ | 42,688 KB |
最終ジャッジ日時 | 2024-06-28 18:21:08 |
合計ジャッジ時間 | 5,549 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
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); } } } } }