結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-05 12:46:50 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 5,000 ms |
| コード長 | 194 bytes |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 21,248 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 07:38:17 |
| 合計ジャッジ時間 | 934 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
main.c:5:11: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | while(n--)scanf("%d",a+n);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int a[100000]={},l[7]={},n;
scanf("%d",&n);
while(n--)scanf("%d",a+n);
while(a[++n])l[a[n]]++;
*a=0;n=7;
while(n--)l[n]>l[*a]&&(*a=n);
printf("%d",*a);
return 0;
}
testestest