Crashing Balloon from http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3

本文探讨了游戏开发中涉及的数值计算挑战,通过一个名为‘爆破气球’的游戏,介绍了玩家如何通过踩爆带有数字的气球来计算分数,并在分数上进行挑战。文章详细解释了游戏规则、分数计算逻辑以及如何使用软件解决裁判难题。

On every June 1st, the Children's Day, there will be a game named "crashing balloon" on TV.   The rule is very simple.  On the ground there are 100 labeled balloons, with the numbers 1 to 100.  After the referee shouts "Let's go!" the two players, who each starts with a score of  "1", race to crash the balloons by their feet and, at the same time, multiply their scores by the numbers written on the balloons they crash.  After a minute, the little audiences are allowed to take the remaining balloons away, and each contestant reports his\her score, the product of the numbers on the balloons he\she's crashed.  The unofficial winner is the player who announced the highest score.

Inevitably, though, disputes arise, and so the official winner is not determined until the disputes are resolved.  The player who claims the lower score is entitled to challenge his\her opponent's score.  The player with the lower score is presumed to have told the truth, because if he\she were to lie about his\her score, he\she would surely come up with a bigger better lie.  The challenge is upheld if the player with the higher score has a score that cannot be achieved with balloons not crashed by the challenging player.  So, if the challenge is successful, the player claiming the lower score wins.

So, for example, if one player claims 343 points and the other claims 49, then clearly the first player is lying; the only way to score 343 is by crashing balloons labeled 7 and 49, and the only way to score 49 is by crashing a balloon labeled 49.  Since each of two scores requires crashing the balloon labeled 49, the one claiming 343 points is presumed to be lying.

On the other hand, if one player claims 162 points and the other claims 81, it is possible for both to be telling the truth (e.g. one crashes balloons 2, 3 and 27, while the other crashes balloon 81), so the challenge would not be upheld.

By the way, if the challenger made a mistake on calculating his/her score, then the challenge would not be upheld. For example, if one player claims 10001 points and the other claims 10003, then clearly none of them are telling the truth. In this case, the challenge would not be upheld.

Unfortunately, anyone who is willing to referee a game of crashing balloon is likely to get over-excited in the hot atmosphere that he\she could not reasonably be expected to perform the intricate calculations that refereeing requires.  Hence the need for you, sober programmer, to provide a software solution.

Input

Pairs of unequal, positive numbers, with each pair on a single line, that are claimed scores from a game of crashing balloon.

Output

Numbers, one to a line, that are the winning scores, assuming that the player with the lower score always challenges the outcome.
Sample Input
343 49
3599 610
62 36

Sample Output
49
610
62
参考了网上的代码
#include<iostream>
#include<cstdio>
#include<memory.h>
#include<cstdlib>
using namespace std;
int siga, sigb;
void dfs(int a, int b, int x){
    if(b==1){
        sigb = b;
        if(a==1){
            siga = a;
        }
    }

    if(x==1 || a==1 && b==1){
        return;
    }

    if(b%x==0)
        dfs(a, b/x, x-1);
    if(a%x==0)
        dfs(a/x, b, x-1);
    dfs(a, b, x-1);
}

int main()
{
    //freopen("in.txt", "r", stdin);
    int a, b, tmp;
    while(cin>>a>>b){

        if(a<b){
            tmp = a;
            a = b;
            b = tmp;
        }
        siga = sigb = 0;
        dfs(a, b, 100);
        if(siga==1)
            cout<<a<<endl;
        else if(sigb==1){
            cout<<b<<endl;
        }else{
            cout<<a<<endl;
        }
    }

    //fclose(stdin);
    return 0;
}


WindowManager: WIN DEATH: Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} 行 163: 11-07 15:59:08.061 1375 1620 I CodecTracker: release tId: 29865, pId: 29927, type: c2.android.mp3.decoder, pkgName: com.shanbay.sentence, mimeType: audio/raw, width: 0, height: 0, frameRate: 0, macroblocks: 0, lifeCycle: UNINITIALIZED->INITIALIZING->INITIALIZED->CONFIGURING->CONFIGURED->STARTING->STARTED->RELEASED, scene: 3164: 11-07 15:59:08.061 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1386, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 174: 11-07 15:59:08.064 1759 3787 I WindowManager: removeIfPossible: Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} callers=com.android.server.wm.WindowState.access$400:378 com.android.server.wm.WindowState$DeathRecipient.binderDied:4331 android.os.IBinder$DeathRecipient.binderDied:329 android.os.BinderProxy.sendDeathNotice:7 ...177: 11-07 15:59:08.065 1759 3787 W InputManager-JNI: Input channel object &#39;58ba4d4 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity (client)&#39; was disposed without first being removed with the input manager! 行 180: 11-07 15:59:08.066 1759 3787 I WindowManager: Removing Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} from ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990} 行 180: 11-07 15:59:08.066 1759 3787 I WindowManager: Removing Window{58ba4d4 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity} from ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990} 行 188: 11-07 15:59:08.068 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1380, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 222: 11-07 15:59:08.074 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1383, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 234: 11-07 15:59:08.075 929 929 I Layer : 58ba4d4 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity#9003: destroyed 行 263: 11-07 15:59:08.080 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1373, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 266: 11-07 15:59:08.081 1759 5650 I WindowManager: WIN DEATH: Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 269: 11-07 15:59:08.082 1759 5650 I WindowManager: removeIfPossible: Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} callers=com.android.server.wm.WindowState.access$400:378 com.android.server.wm.WindowState$DeathRecipient.binderDied:4331 android.os.IBinder$DeathRecipient.binderDied:329 android.os.BinderProxy.sendDeathNotice:747 <botto ... 行 272: 11-07 15:59:08.082 1759 5650 W InputManager-JNI: Input channel object &#39;9525c49 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity (client)&#39; was disposed without first being removed with the input manager! 行 277: 11-07 15:59:08.082 1759 5650 I WindowManager: Removing Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} from ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990} 行 277: 11-07 15:59:08.082 1759 5650 I WindowManager: Removing Window{9525c49 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} from ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990} 行 336: 11-07 15:59:08.093 929 929 I Layer : com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity#9696: destroyed 行 344: 11-07 15:59:08.094 929 929 I Layer : 9525c49 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity#8541: destroyed 行 409: 11-07 15:59:08.108 1759 2017 W ActivityManager: Scheduling restart of crashed service com.shanbay.sentence/org.chromium.content.app.SandboxedProcessService0:0 in 79863ms for connection 行 411: 11-07 15:59:08.110 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:22825 proc: activity:null 行 412: 11-07 15:59:08.110 3586 4712 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 808: 11-07 15:59:08.531 1759 4261 I ActivityManager: appDiedLocked: pid=22647, app=ProcessRecord{c53a6dd 22647:com.shanbay.sentence:pushcore/u0a228}, fromBinderDied=true, reason=null 行 811: 11-07 15:59:08.533 1759 4261 I ActivityManager: Process com.shanbay.sentence:pushcore (pid 22647) has died: vis+2 BTOP 行 816: 11-07 15:59:08.536 1759 4261 W ActivityManager: Scheduling restart of crashed service com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService in 219434ms for connection 行 817: 11-07 15:59:08.538 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:22647 proc: activity:null 行 821: 11-07 15:59:08.542 3586 4712 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 860: 11-07 15:59:08.573 1759 4258 I ActivityManager: appDiedLocked: pid=29927, app=ProcessRecord{e233c88 29927:com.shanbay.sentence/u0a228}, fromBinderDied=true, reason=null 行 862: 11-07 15:59:08.574 1759 4258 I ActivityManager: Process com.shanbay.sentence (pid 29927) has died: vis+2 TOP 行 906: 11-07 15:59:08.600 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:29927 proc: activity:null 行 910: 11-07 15:59:08.603 1759 4234 I SWAP_Scene: This app was killed: com.shanbay.sentence 行 914: 11-07 15:59:08.605 3586 16329 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 915: 11-07 15:59:08.605 1759 4258 I HwRestoreStateManager: com.shanbay.sentence doesn&#39;t support recovery 行 916: 11-07 15:59:08.605 1759 4258 W ActivityTaskManager: Force removing ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990}: app died, no saved state 行 937: 11-07 15:59:08.611 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 937: 11-07 15:59:08.611 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 939: 11-07 15:59:08.612 1759 4258 W ActivityTaskManager: stopFreezingScreen return caused by mFreezingScreen=false this=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} 行 941: 11-07 15:59:08.615 3427 3514 I ScenarioService: app is visible from system: com.shanbay.sentence ,visible: false 行 944: 11-07 15:59:08.617 3586 3752 E DollieAdapterService: notifyActivityState pkg:com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity state:19 fg:false mUid:10228 行 946: 11-07 15:59:08.627 1759 4258 W WindowManager: Failed to take screenshot, prepare for Snapshot failed for Task{e9c27d #990 type=standard A=10228:com.shanbay.sentence U=0 visible=true mode=hwMultiwindow-primary translucent=true sz=2} 行 947: 11-07 15:59:08.628 1759 4258 I WindowManager: removeWindowToken: displayid:0 binder:Token{2905236 ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}}} token:null 行 948: 11-07 15:59:08.629 1759 4258 I WindowManager: removeChild: child=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990 f}} reason=removeChild 行 949: 11-07 15:59:08.631 1759 4258 W ActivityTaskManager: stopFreezingScreen return caused by mFreezingScreen=false this=ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t-1 f}} 行 962: 11-07 15:59:08.643 3427 3514 I ScenarioService: app is visible from system: com.shanbay.sentence ,visible: true 行 978: 11-07 15:59:08.647 3586 3752 I NetPredictEngine: Parent: active app change, old packageName: com.huawei.hinote, new packageName: com.shanbay.sentence 行 991: 11-07 15:59:08.650 3586 3752 I SmartDualCardConfig: getAppType,pkgName=com.shanbay.sentence,appType=331033: 11-07 15:59:08.675 929 929 I Layer : ActivityRecord{c075bc2 u0 com.shanbay.sentence/com.shanbay.bay.biz.words.v2.study.StudyActivity t990}#9001: destroyed 行 1336: 11-07 15:59:09.075 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1336: 11-07 15:59:09.075 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1415: 11-07 15:59:09.174 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1415: 11-07 15:59:09.174 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 1418: 11-07 15:59:09.174 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{88526be 0:com.shanbay.sentence/u0a228} 行 1423: 11-07 15:59:09.175 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 1436: 11-07 15:59:09.201 1759 1860 I ActivityManager: Start proc 19763:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 1436: 11-07 15:59:09.201 1759 1860 I ActivityManager: Start proc 19763:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 1439: 11-07 15:59:09.208 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:19763 proc: activity:null 行 1452: 11-07 15:59:09.208 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:19763 uid:10228 行 1454: 11-07 15:59:09.209 3427 3759 I PG_ash : start process:com.shanbay.sentence reason:activity pid:19763 uid:10228 pkgs:null 行 1455: 11-07 15:59:09.210 3427 3759 I PG_ash : com.shanbay.sentence pop from SHDA 行 1456: 11-07 15:59:09.210 3427 3759 I PG_ash : com.shanbay.sentence should refresh native pids, reason: visible 行 1457: 11-07 15:59:09.210 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: true 行 1472: 11-07 15:59:09.266 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=19763 preloadStatus=0 行 1472: 11-07 15:59:09.266 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=19763 preloadStatus=0 行 1497: 11-07 15:59:09.313 1759 6463 I HwRestoreStateManager: reportAppRestoreScene, app: com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity ,scene:WarmStart 行 1516: 11-07 15:59:09.343 1759 6463 I ActivityTaskManager: onActivityStateChanged: switchFocusedStackIfNeed, now record = ActivityRecord{b002120 u0 com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity t990}, topResumed = ActivityRecord{2c8737f u0 com.huawei.hinote/.edit.EditActivity t977} 行 1517: 11-07 15:59:09.347 19763 12839 I LifecycleTransaction: activityCallbacks LaunchActivityItem{intent=Intent { cmp=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity },ident=184557856,info=ActivityInfo{a00031e com.shanbay.words.home.mvp.HomeActivity},curConfig={1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw529dp w529dp h673dp 420dpi lrg hdr widecg port night finger -keyb/v/h -nav/h winConfig={ m ...1517: 0 - 1390, 1840) mMaxBounds=Rect(0, 0 - 2800, 1840) mWindowingMode=hwMultiwindow-primary mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mPopOverMode=0} suim:1 extflag:8 s.19 fontWeightAdjustment=0},referrer=com.shanbay.sentence,procState=20,state=Bundle[mParcelledData.dataSize=15268],persistentState=null,pendingResults=null,pendingNewIntents=null,options=null,profilerInfo=null,assistToken=android.os.BinderProxy@a28a7ff,rotationAdj=null,shareableActivityToken=android.os.BinderProxy@4b9 ...1522: 11-07 15:59:09.351 3586 3586 I 00924/HwParentControlInHwSys: ActivityControllerManager - onActivityResuming -> pkgName=com.shanbay.sentence, cls=com.shanbay.words.home.mvp.HomeActivity 行 1525: 11-07 15:59:09.353 3586 3586 I 00924/HwParentControlInHwSys: SysPreAppController - onActivityResuming -> ignore activity, the package com.shanbay.sentence 行 1532: 11-07 15:59:09.362 1759 1840 W 00202/HiDATA_ContentAware: mForegroundAppPackageName: com.shanbay.sentence, score: 0 行 1533: 11-07 15:59:09.362 1759 1840 W 00202/HiDATA: onForegroundAppWifiSleepChange: config:false, sleeptime:-1,type: 33, appname:com.shanbay.sentence 行 1534: 11-07 15:59:09.363 1759 1840 W 00202/HiDATA: APP type: 33 appName= com.shanbay.sentence 行 1535: 11-07 15:59:09.364 1759 1840 W 00202/HiDATA: no game, APP_TYPE_GAME, appName =com.shanbay.sentence 行 1551: 11-07 15:59:09.404 19763 12841 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 1554: 11-07 15:59:09.407 19763 12841 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#0 行 2493: 11-07 15:59:10.382 19763 19763 W Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.shanbay.sentence/tinker 行 2500: 11-07 15:59:10.388 19763 19763 I SkeletonUtils: try to get file lock: /data/user/0/com.shanbay.sentence/app_skeleton/com.shanbay.sentence.lock 行 2500: 11-07 15:59:10.388 19763 19763 I SkeletonUtils: try to get file lock: /data/user/0/com.shanbay.sentence/app_skeleton/com.shanbay.sentence.lock 行 2578: 11-07 15:59:10.452 19763 12841 I AwareBitmapCacher: init processName:com.shanbay.sentence pid=19763 uid=10228 行 2953: 11-07 15:59:10.629 19763 19763 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 3023: 11-07 15:59:10.656 1759 3282 I ContentProviderHelper: publishContentProviders app: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228}, providers.size: 25 行 3061: 11-07 15:59:10.669 19763 19763 W Tinker.Tinker: tinker patch directory: /data/user/0/com.shanbay.sentence/tinker 行 3065: 11-07 15:59:10.670 19763 19763 I Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.shanbay.sentence, main process:true, systemOTA:false, fingerPrint:HUAWEI/BKY-W10D/HWBKY:12/HUAWEIBKY-W10/104.2.0.195C00:user/release-keys, oatDir:null, useInterpretMode:false 行 3067: 11-07 15:59:10.670 19763 19763 I Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.shanbay.sentence/tinker, code: -2, cost: 5ms 行 3223: 11-07 15:59:10.730 19763 19763 I BayXLog : log path: /storage/emulated/0/Android/data/com.shanbay.sentence/files/ShanbayV2/log/words2 行 3226: 11-07 15:59:10.734 19763 13036 W DE N VideoEngine: IsAisrProcessorSupported:314: Failed to getEffectEx(DE_FEATURE_AISR, {DE_EFFECT_TYPE_ENABLE,com.shanbay.sentence},&status(.size()=1)) ret=-13393: 11-07 15:59:10.835 19763 19763 I ConnectivityManager: requestNetwork and the calling app is: com.shanbay.sentence 行 3395: 3314 I ConnectivityService: requestNetwork for uid/pid:10228/19763 activeRequest: null callbackRequest: 1481 [NetworkRequest [ REQUEST id=1482, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ]] callback flags: 0 priority: 2147483647 行 3544: 1-07 15:59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43305): avc: denied { getattr } for path="/proc/fb" dev="proc" ino=4026532203 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3545: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43306): avc: denied { getattr } for path="/proc/keys" dev="proc" ino=4026532476 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_keys:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3546: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43307): avc: denied { getattr } for path="/proc/kmsg" dev="proc" ino=4026532328 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_kmsg:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3547: :59:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43308): avc: denied { getattr } for path="/proc/misc" dev="proc" ino=4026532204 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_misc:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3548: 9:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43309): avc: denied { getattr } for path="/proc/locks" dev="proc" ino=4026532315 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_locks:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 3549: 9:10.877 19763 19763 W hanbay.sentence: type=1400 audit(0.0:43310): avc: denied { getattr } for path="/proc/swaps" dev="proc" ino=4026532455 scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:object_r:proc_swaps:s0 tclass=file permissive=0 app=com.shanbay.sentence 行 4018: 11-07 15:59:11.069 19763 13142 I BayHotLoad: spec: {"application_info":{"channel":"huawei-channel","flavor":"stable64","pkg":"com.shanbay.sentence","version_code":59602,"version_name":"5.9.602"},"device_info":{"arch":"armeabi-v7a,arm64-v8a","id":"","manufacturer":"HUAWEI","model":"BKY-W10","os":31,"root":false,"screen_height":1840,"screen_width":2800},"id_version":"1.0.0","platform":"Android","user_id":"f ... 行 4187: 11-07 15:59:11.147 1759 3791 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=null knownToBeDead=true thread=null pid=-1 preloadStatus=-1 行 4188: 11-07 15:59:11.147 1759 3791 I BigFontUtils: adjustAppProcessConfiguration appInfo:com.shanbay.sentence 行 4189: 11-07 15:59:11.148 1759 3791 I ActivityManager: Posting procStart msg for 0:com.shanbay.sentence:pushcore/u0a228 行 4190: 11-07 15:59:11.149 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} 行 4193: 11-07 15:59:11.149 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 4235: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4235: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4235: 167 1759 3781 I ContentProviderHelper: Need to start process com.shanbay.sentence:pushcore for provider ContentProviderInfo{name=com.shanbay.sentence.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 4236: 11-07 15:59:11.167 1759 3781 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 4236: 11-07 15:59:11.167 1759 3781 I ActivityManager: startProcess: name=com.shanbay.sentence:pushcore app=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 4239: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Successfully start provider ContentProviderRecord{1230cc u0 com.shanbay.sentence/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} caller pid= 19763 行 4239: 11-07 15:59:11.167 1759 3781 I ContentProviderHelper: Successfully start provider ContentProviderRecord{1230cc u0 com.shanbay.sentence/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{54ee046 0:com.shanbay.sentence:pushcore/u0a228} caller pid= 19763 行 4356: 11-07 15:59:11.210 1759 1860 I ActivityManager: Start proc 13240:com.shanbay.sentence:pushcore/u0a228 for service {com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService} 行 4356: 11-07 15:59:11.210 1759 1860 I ActivityManager: Start proc 13240:com.shanbay.sentence:pushcore/u0a228 for service {com.shanbay.sentence/com.shanbay.lib.jiguang.push.JPushProxyService} 行 4361: 11-07 15:59:11.211 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:13240 proc: activity:null 行 4362: 11-07 15:59:11.211 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:13240 uid:10228 行 4387: 11-07 15:59:11.215 3427 3759 I PG_ash : start process:com.shanbay.sentence:pushcore reason:service pid:13240 uid:10228 pkgs:null 行 4396: 11-07 15:59:11.215 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: false 行 5019: 11-07 15:59:11.438 13240 13263 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#256 行 5051: 11-07 15:59:11.455 13240 13263 I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.shanbay.sentence#10228#0 行 5122: 11-07 15:59:11.493 1759 2017 I ActivityManager: power push bindservice callingPkg:com.shanbay.sentence, pkg:com.huawei.hwid, callerApp pid:19763, pid:0 行 5272: 13865 I ContentProviderHelper: Need to start process com.huawei.appmarket:query for provider ContentProviderInfo{name=com.huawei.appmarket.commondata className=com.huawei.appmarket.service.provider.CommonDataProvider}, callerApp: ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228} 行 5447: 11-07 15:59:11.706 1759 3314 I HwNotificationService_Vibrate: getHwVibratorType pkg=com.shanbay.sentence, channelId=JPush_3_7, userId=10228, vibratorType=haptic.pattern.type4 行 5813: 11-07 15:59:11.957 1759 3791 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 6919: 11-07 15:59:12.539 1759 13865 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7443: 11-07 15:59:12.882 1759 4261 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7481: 11-07 15:59:12.933 588 588 I lowmemorykiller: Kill &#39;com.shanbay.sentence&#39; (19763), uid 10228, oom_score_adj 102 to free 290396kB rss, 43784kb swap 行 7525: 11-07 15:59:12.939 1759 4261 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7575: 11-07 15:59:12.958 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7751: 11-07 15:59:13.032 1759 4258 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7813: 11-07 15:59:13.041 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7944: 11-07 15:59:13.069 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 7945: 11-07 15:59:13.070 1759 3013 I ConnectivityService: releasing NetworkRequest [ REQUEST id=1482, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10228 RequestorUid: 10228 RequestorPkg: com.shanbay.sentence] ] (release request) 行 7955: 11-07 15:59:13.071 1759 12340 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8029: 11-07 15:59:13.093 1759 3298 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8100: 11-07 15:59:13.132 1759 4653 I ActivityManager: appDiedLocked: pid=19763, app=ProcessRecord{88526be 19763:com.shanbay.sentence/u0a228}, fromBinderDied=true, reason=null 行 8101: 11-07 15:59:13.133 1759 4653 I ActivityManager: Process com.shanbay.sentence (pid 19763) has died: vis+2 TOP 行 8158: 11-07 15:59:13.148 1759 1840 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_DIED pkg:com.shanbay.sentence uid:10228 pid:19763 proc: activity:null 行 8159: 11-07 15:59:13.149 3586 22759 I HwGlobalWritingBusiness: mProcessObserver:package:com.shanbay.sentence 行 8360: 11-07 15:59:13.215 1759 1859 W BroadcastQueue: Skipping deliver [background] BroadcastRecord{ccb7d20 u0 android.intent.action.INPUT_METHOD_CHANGED} to ReceiverList{f163403 19763 com.shanbay.sentence/10228/u0 remote:223ecb2}: process gone or crashing 行 8462: 11-07 15:59:13.267 1759 3780 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8602: 11-07 15:59:13.356 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=null knownToBeDead=false thread=null pid=-1 preloadStatus=-1 行 8603: 11-07 15:59:13.356 1759 1842 I BigFontUtils: adjustAppProcessConfiguration appInfo:com.shanbay.sentence 行 8608: 11-07 15:59:13.359 1759 1842 I ActivityManager: Posting procStart msg for 0:com.shanbay.sentence/u0a228 行 8801: 11-07 15:59:13.460 1759 1860 I ActivityManager: startProcess: asking zygote to start proc ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} 行 8804: 11-07 15:59:13.460 1759 1860 W HWMW_HwMagicActivityStarter: overrideArgsForHwMagicWin packageName : com.shanbay.sentence 行 8811: 11-07 15:59:13.461 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8811: 11-07 15:59:13.461 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8923: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8923: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8926: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8926: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8928: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8928: 11-07 15:59:13.502 1759 1842 I ActivityManager: startProcess: name=com.shanbay.sentence app=ProcessRecord{2954b0 0:com.shanbay.sentence/u0a228} knownToBeDead=false thread=null pid=0 preloadStatus=0 行 8973: 11-07 15:59:13.514 1759 3781 I HwActivityTaskManagerServiceEx: add visible task, topActivity=com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity taskId=990 isVisible=true isFocused=false windowMode=100 行 8978: 11-07 15:59:13.517 1759 1860 I ActivityManager: Start proc 19764:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 8978: 11-07 15:59:13.517 1759 1860 I ActivityManager: Start proc 19764:com.shanbay.sentence/u0a228 for activity {com.shanbay.sentence/com.shanbay.words.home.mvp.HomeActivity} 行 8981: 11-07 15:59:13.517 1759 1860 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:PROCESS_CREATE pkg:com.shanbay.sentence uid:10228 pid:19764 proc: activity:null 行 8982: 11-07 15:59:13.517 1759 1860 I HwActivityManagerServiceEx: notifyProcessStatusChange::pkg:com.shanbay.sentence pid:19764 uid:10228 行 8999: 11-07 15:59:13.523 3427 3759 I PG_ash : start process:com.shanbay.sentence reason:activity pid:19764 uid:10228 pkgs:null 行 9000: 11-07 15:59:13.523 3427 3759 I PG_ash : com.shanbay.sentence should refresh native pids, reason: visible 行 9001: 11-07 15:59:13.523 3427 3759 I PG_ash : running package: com.shanbay.sentence, visible: true 根据这些日志结合分析一下被杀的原因
11-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值