結果
| 問題 | No.887 Collatz |
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2019-06-14 04:58:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 349 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-05-07 01:18:44 |
| 合計ジャッジ時間 | 4,814 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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