結果
問題 | No.135 とりあえず1次元の問題 |
ユーザー | yoza |
提出日時 | 2015-02-26 17:43:23 |
言語 | Nim (2.0.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 277 bytes |
コンパイル時間 | 2,863 ms |
コンパイル使用メモリ | 68,244 KB |
実行使用メモリ | 12,232 KB |
最終ジャッジ日時 | 2023-09-11 07:49:47 |
合計ジャッジ時間 | 4,269 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 24 ms
12,032 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,380 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 2 ms
4,376 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 2 ms
4,376 KB |
testcase_20 | WA | - |
testcase_21 | AC | 25 ms
12,204 KB |
testcase_22 | AC | 25 ms
12,232 KB |
evil01.txt | AC | 24 ms
12,040 KB |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import strutils, sequtils, math var n = readLine(stdin).parseInt x_seq = split(readLine(stdin), ' ').map(parseInt) min_v = high(int) tmp : int for i in countup(0, n - 2): tmp = abs(x_seq[i] - x_seq[i + 1]) if tmp > 0 and min_v > tmp: min_v = tmp echo(min_v)