結果
| 問題 | No.785 色食い虫 | 
| コンテスト | |
| ユーザー |  tenten | 
| 提出日時 | 2020-09-04 22:20:03 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 130 ms / 2,000 ms | 
| コード長 | 429 bytes | 
| コンパイル時間 | 3,436 ms | 
| コンパイル使用メモリ | 74,516 KB | 
| 実行使用メモリ | 54,264 KB | 
| 最終ジャッジ日時 | 2024-11-26 14:16:50 | 
| 合計ジャッジ時間 | 8,912 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 28 | 
ソースコード
import java.util.*;
public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int ans = 1;
    	for (int i = 0; i < 3; i++) {
    	    String s = sc.next();
    	    if (s.equals("NONE")) {
    	        ans *= 16 * 16;
    	    } else {
    	        int count = 16 - (s.length() + 1) / 2;
    	        ans *= count * count;
    	    }
    	}
    	System.out.println(ans);
	}
}
            
            
            
        