結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2021-03-11 09:13:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 182,808 KB |
最終ジャッジ日時 | 2024-10-12 23:29:02 |
合計ジャッジ時間 | 3,982 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 23 |
ソースコード
A = int(input()) from collections import Counter C = Counter([]) for i in range(1, int(A+1)): sm = i*(i+1)//2 if C[sm-A] == 1: print("YES") exit() C[sm] = 1 print("No")