HDU 3951 de la moneda del juego (juego del anillo)

http://acm.hdu.edu.cn/showproblem.php?pid=3951

 

#include <bits / STDC ++ h.> usando espacio de nombres std;
int t, n, k; int main () {
     // freopen ( "en", "r", la entrada estándar); 
    ios :: sync_with_stdio ( 0 ); 
    cin >> t;
    para ( int i = 1 ; i <= t; i ++ ) { 
        cout << " Caso " << i << " : " ; 
        cin >> n >> k;
        si (k == 1 ) {
             si (N &

 

) Cout << " primera " << endl;
            otro tribunal << " segundo " << endl; 
        } Más {
             si (n <= k) 
                cout << " primero " << endl;
            otro tribunal << " segundo " << endl; 

        } 
    } 
    Volver  0 ; 
}

 

Supongo que te gusta

Origin www.cnblogs.com/xcfxcf/p/12559981.html
Recomendado
Clasificación