結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-08-06 01:44:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 37,504 KB |
| 実行使用メモリ | 15,808 KB |
| 最終ジャッジ日時 | 2025-01-03 06:15:38 |
| 合計ジャッジ時間 | 27,141 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 TLE * 3 |
ソースコード
#include <stdio.h>
int main(){
int n,m,a[100000],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;
}
testestest