結果
問題 |
No.634 硬貨の枚数1
|
ユーザー |
|
提出日時 | 2018-01-19 21:45:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 174 bytes |
コンパイル時間 | 664 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-25 18:44:03 |
合計ジャッジ時間 | 5,160 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 66 |
ソースコード
N = int(input()) j, num = 0, 0 while N > 0: if N < j * (j + 1) // 2: N = N - j * (j - 1) // 2 j = 0 num += 1 else: j += 1 print(num)