zoukankan      html  css  js  c++  java
  • HDU(2149)Public Sale 博弈

    典型的巴什博奕。

    #include <iostream>
    #include <stdio.h>
    #include <string.h>
    #include <algorithm>
    #include <set>
    using namespace std;
    int main() {
        int m,n;
        while(~scanf("%d%d",&m,&n)){
            if(m<=n){
                printf("%d",m);
                for(int i = m+1;i <= n;i++)
                    printf(" %d",i);
                printf("\n");
            }
            else{
                if(m%(n+1))
                    printf("%d\n",m%(n+1));
                else
                    printf("none\n");
            }
        }
        return 0;
    }
  • 相关阅读:
    WEB
    Python
    Git
    JavaScript
    鸡汤
    面向对象
    Python
    Python
    MongoDB
    Oracle 11g 安装
  • 原文地址:https://www.cnblogs.com/Roly/p/3079576.html
Copyright © 2011-2022 走看看