結果
問題 | No.4 おもりと天秤 |
ユーザー | juugaya |
提出日時 | 2020-07-29 10:20:04 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 692 bytes |
コンパイル時間 | 2,501 ms |
コンパイル使用メモリ | 71,736 KB |
実行使用メモリ | 57,672 KB |
最終ジャッジ日時 | 2023-09-11 07:11:47 |
合計ジャッジ時間 | 6,680 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 127 ms
55,640 KB |
testcase_02 | AC | 126 ms
55,920 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 124 ms
55,744 KB |
testcase_07 | WA | - |
testcase_08 | AC | 139 ms
55,756 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 126 ms
55,760 KB |
testcase_12 | AC | 124 ms
55,584 KB |
testcase_13 | AC | 125 ms
55,488 KB |
testcase_14 | AC | 124 ms
55,328 KB |
testcase_15 | AC | 125 ms
55,572 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 143 ms
55,808 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String lo = sc.nextLine(); int n =Integer.parseInt(lo); String l=sc.nextLine(); int b[] = new int[n]; //String [] ll=l.split(" "); //int a =Integer.parseInt(ll[1]); int sum1=0; // int sum2=0; for(int i=0;i<n;i++){ String [] ll=l.split(" "); b[i]=Integer.parseInt(ll[i]); sum1=sum1+b[i]; // System.out.println(l); } if(sum1/2==0){ System.out.println("possible"); } else{System.out.println("impossible");} } }