結果
| 問題 |
No.887 Collatz
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-06-14 04:58:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-06 20:01:00 |
| 合計ジャッジ時間 | 2,070 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 10 WA * 18 |
ソースコード
i1 = 0
nmax = 1
n = int(input())
while n > 1:
if n > nmax: nmax = n
if n % 2 == 0:
n = n / 2
else:
n = 3 * n + 1
i1 = i1 + 1
print(i1)
print(nmax)
trineutron