結果

問題 No.785 色食い虫
ユーザー michonz4michonz4
提出日時 2020-01-03 10:13:08
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 18:57:29
合計ジャッジ時間 1,301 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main() {
  char tmp[100];
  int color=1, t;
  
  for (int i=0; i<3; i++) {
    scanf("%s", tmp);

    if (tmp[0]=='N') t=16;
    else t=16-(strlen(tmp)+1)/2;
    color*=t*t;
  }

  printf("%d\n", color);
  return 0;
}
0