結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-12-14 21:45:24 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 14,198 ms |
| コンパイル使用メモリ | 219,748 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 21:45:45 |
| 合計ジャッジ時間 | 11,987 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 5 |
ソースコード
package main
import . "fmt"
func main() {
var n int
Scan(&n)
if n%2==1 {
Println(1)
} else if n==2 {
Println(2)
} else {
Println(n-1)
}
}
ID 21712