結果
問題 |
No.175 simpleDNA
|
ユーザー |
![]() |
提出日時 | 2018-05-05 15:26:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 133 ms / 1,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 3,377 ms |
コンパイル使用メモリ | 74,408 KB |
実行使用メモリ | 41,400 KB |
最終ジャッジ日時 | 2024-06-28 01:56:56 |
合計ジャッジ時間 | 4,963 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
package yukikoda; import java.util.Scanner; public class gobe { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int N = sc.nextInt(); int sum = 1; String[] str = new String[N]; for(int i=0; i<N; i++) { str[i] = sc.next(); } if(L == 3) { System.out.println(N); } if(L > 3) { for(int i=1; i<=L-3; i++) { sum *= 2; } System.out.println(sum*N); } } }