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