結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2019-02-09 20:06:15 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 3,439 ms |
コンパイル使用メモリ | 74,912 KB |
実行使用メモリ | 56,004 KB |
最終ジャッジ日時 | 2024-07-01 19:16:37 |
合計ジャッジ時間 | 8,396 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 28 |
ソースコード
import java.util.Scanner; public class No785{ public static void main(String[]args) { int[] Next = new int[3]; for(int i = 0; i<3 ;i++) { String COLL =new Scanner(System.in).next(); int R = comb(COLL); Next [0] = R; } int put = Next[0]*Next[1]*Next[2]; System.out.println(put); } public static int comb(String COLL) { int leg = COLL.length(); int leng = ((leg-1)/2)+1; leng = leng^2; int comb =256-leng; return comb; } }