結果
問題 |
No.785 色食い虫
|
ユーザー |
|
提出日時 | 2019-07-10 00:14:26 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 496 bytes |
コンパイル時間 | 6,576 ms |
コンパイル使用メモリ | 74,260 KB |
実行使用メモリ | 41,652 KB |
最終ジャッジ日時 | 2024-10-12 20:50:10 |
合計ジャッジ時間 | 8,350 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | RE * 28 |
ソースコード
import java.util.*; import java.io.*; import java.math.*; public class No785 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = "NONE".equals(sc.next())? 16 : 16 - sc.next().replaceAll(",", "").length(); int g = "NONE".equals(sc.next())? 16 : 16 - sc.next().replaceAll(",", "").length(); int b = "NONE".equals(sc.next())? 16 : 16 - sc.next().replaceAll(",", "").length(); System.out.println(r * r * g * g * b * b); } }