結果
問題 | No.634 硬貨の枚数1 |
ユーザー |
![]() |
提出日時 | 2021-07-15 08:52:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 82,340 KB |
実行使用メモリ | 61,572 KB |
最終ジャッジ日時 | 2024-07-04 09:08:31 |
合計ジャッジ時間 | 7,188 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 75 |
ソースコード
N = int(input()) i = 2 L = [1] while L[-1]<=N: L.append(i*(i+1)//2) i+=1 if N in L: print(1) exit() for l1 in L: for l2 in L: if l1+l2==N: print(2) exit() print(3)