結果
| 問題 |
No.2426 Select Plus or Minus
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-08-18 21:16:37 |
| 言語 | cLay (20241019-1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| コンパイル時間 | 2,168 ms |
| コンパイル使用メモリ | 171,780 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 05:18:41 |
| 合計ジャッジ時間 | 16,179 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 41 |
ソースコード
ll@N,m=N,K=0;string S{};while(m>1){K++;if(m%2==0)m/=2,S+="/";else m=m*3+1,S+="+";}
if(K>10000){m=N;K=0;S="";while(m>1){K++;if(m%2==0)m/=2,S+="/";else m=m*3-1,S+="-";}}
assert(K>10000);
wtLn(K,S);