結果
| 問題 | No.1883 SLASH |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-05 13:53:25 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 12,193 ms |
| コンパイル使用メモリ | 215,488 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 11:46:54 |
| 合計ジャッジ時間 | 12,846 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
// No.1883 SLASH
package main
import (
"fmt"
"sort"
"strconv"
)
func main() {
var s string
fmt.Scan(&s)
x := make([]int, 3)
for i, v := range s {
x[i], _ = strconv.Atoi(string(v))
}
sort.Ints(x)
fmt.Println(x[2] - x[0])
}