結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2020-01-03 10:15:58 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 18:57:41 |
合計ジャッジ時間 | 1,037 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 28 |
ソースコード
#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; printf("%d\n", t); color*=t*t; } printf("%d\n", color); return 0; }