結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-10 00:42:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 116 bytes |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 53,708 KB |
| 最終ジャッジ日時 | 2024-11-26 08:52:53 |
| 合計ジャッジ時間 | 1,425 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 5 |
ソースコード
N = int(input())
if N%2==1:
print(1)
exit()
if N==2:
print(2)
exit()
ans = (N-2)*(N-1)//2
print(ans)