結果

問題 No.135 とりあえず1次元の問題
ユーザー 👑 testestest
提出日時 2015-08-06 01:43:50
言語 C90
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 203 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 37,504 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-03 06:12:45
合計ジャッジ時間 1,990 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
int n,m,a[10000],s,t=-1;
scanf("%d",&n);s=n;
while(s)scanf("%d",a+n-s--);
while(n--,m=n)while(m--)if(s=a[n]-a[m],s=s<0?-s:s)t=!~t||s<t?s:t;
printf("%d",~t?t:0);
return 0;
}
0