結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2017-06-26 02:09:04 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 467 bytes |
コンパイル時間 | 1,929 ms |
コンパイル使用メモリ | 73,980 KB |
実行使用メモリ | 50,196 KB |
最終ジャッジ日時 | 2024-10-04 05:53:03 |
合計ジャッジ時間 | 3,098 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;class Main {public static void main(String[] args) throws IOException {BufferedReader br = new BufferedReader(new InputStreamReader(System.in));int len=Integer.parseInt(br.readLine());int pat=Integer.parseInt(br.readLine());br.readLine();br.close();int sum=1;int n=(len-3)/3;for(int i=0;i<n;i++){sum*=8;}System.out.println(sum*pat);}}