結果
| 問題 | No.785 色食い虫 |
| コンテスト | |
| ユーザー |
michonz4
|
| 提出日時 | 2020-01-03 10:17:14 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 804µs | |
| コード長 | 361 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 36,096 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 15:39:51 |
| 合計ジャッジ時間 | 1,497 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(void)
{
char RGB[32];
int i, ans;
for (i = 0; i < 3; ++i) {
scanf("%s", RGB);
if (strcmp(RGB, "NONE") == 0) {
if (i) ans *= 16;
else ans = 16;
}
else {
int length = strlen(RGB);
if (i) ans *= (32 - length) / 2;
else ans = (32 - length) / 2;
}
}
printf("%d", ans * ans);
return 0;
}
michonz4