結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-20 16:50:53 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 260 bytes |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 03:21:11 |
| 合計ジャッジ時間 | 539 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 5 |
ソースコード
#include <stdio.h>
int main (void){
int a,b,c,n; int r[100],e[999]={0};
scanf("%d%d%d",&a,&b,&n);
for(int i = 0;i < n;i++) scanf("%d",&r[i]);
for(int i = 0;i < n;i++){
if(e[r[i]] == 0)e[r[i]] = 1;
else c++;
}
printf("%d\n",(a+b)*c);
return(0);
}