测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A67231. 下⾯C++程序的输出为( )。#include <iostream>

单选题

题目描述

下⾯C++程序的输出为(  )。

#include  <iostream>   
using  namespace  std ; 
int  main()  {
    int  N  =  15 ,  cnt  =  0 ;
    for  (int  x  =  1;  x  +  x  +  x  <=  N ;  x++)
        for  (int  y  =  x;  x  +  y  +  y  <=  N ;  y++)
            for  (int  z  =  y;  x  +  y  +  z  <=  N ;  z++)
                cnt++;
    cout  <<  cnt  <<  endl;
    return  0 ; 
}

选项(单选)