1046(15)

package com.company;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[][] array=new int[n][4];
        for (int i=0;i<n;i++){
            array[i][0]=sc.nextInt();
            array[i][1]=sc.nextInt();
            array[i][2]=sc.nextInt();
            array[i][3]=sc.nextInt();
        }
        //输入完成
        int c1=0,c2=0;
        for (int i=0;i<n;i++){
            if (array[i][0]+array[i][2]==array[i][1]&&array[i][0]+array[i][2]!=array[i][3]){
                c2++;
            }
            if (array[i][0]+array[i][2]==array[i][3]&&array[i][0]+array[i][2]!=array[i][1]){
                c1++;
            }
        }
        System.out.print(c1+" "+c2);
    }
}

解释下 03-08 15:04:15.132513 4296 4420 D bt_shim_hci: [hci_layer.cc(203)] OnTransmitPacketCommandComplete: Received cmd complete for SNIFF_SUBRATING 03-08 15:04:15.132665 4296 4381 E bt_btu_hcif: btu_hcif.cc:1046 btu_hcif_hdl_command_complete: Command complete for opcode:0x811 should not be handled here 03-08 15:04:15.133179 1054 2232 D SpeechDriverNormal: sendMailbox(), msg_id: 0x2f51 03-08 15:04:15.133811 4296 4672 V bt_btif_hf: btif_hf.cc:1542 AtResponse: BTHF ok 03-08 15:04:15.133897 4296 4672 V bt_btif_hf: [btif_hf.cc(1555)] AtResponse: AtResponse: response_code= 1 is_atd_received: 0 error_code: 0 03-08 15:04:15.134083 4296 4672 D HeadsetStateMachine: handleMessage: X 03-08 15:04:15.134149 4296 4381 D bluetooth: bta_ag_main.cc:560 bta_ag_api_result: Audio gateway event for one client handle:1 scb:codec_updated=0, codec_fallback=0, nrec=0sco_codec=2, peer_codec=3, cvsd_settings=1, msbc_settings=0, lc3_settings=0, device=xx:xx:xx:xx:6f:8c 03-08 15:04:15.134184 4296 4381 D bluetooth: bta_ag_main.cc:786 bta_ag_sm_execute: Execute AG event handle:0x0001 bd_addr:xx:xx:xx:xx:6f:8c state:BTA_AG_OPEN_ST[0x02] event:BTA_AG_API_RESULT_EVT[0x0506] result:BTA_AG_UNAT_RES[0x14] 03-08 15:04:15.134203 4296 4381 D bta_ag_cmd: bta_ag_cmd.cc:1724 bta_ag_hfp_result: HFP connection result:result:BTA_AG_UNAT_RES 03-08 15:04:15.134222 4296 4381 V bt_port_api: port_api.cc:1066 PORT_WriteData: PORT_WriteData() max_len:6 03-08 15:04:15.134321 4296 4381 V bt_port_api: port_api.cc:1150 PORT_WriteData: PORT_WriteData 6 bytes 03-08 15:04:15.134336 4296 4381 V bt_port_api: port_api.cc:883 port_write: PORT_Write : Data is being sent
03-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值