1 条题解

  • 1
    @ 2021-10-25 20:46:34
    #pragma GCC optimize(2)
    #pragma GCC optimize(2)
    #include <cstdio>
    #include <cstring>
    #include <iostream>
    #include <algorithm>
    
    using namespace std;
    
    void read( __int128 &x )
    {
        x = 0; int f = 1;
        char c ; c = getchar();
        while ( c < '0' && c > '9' ) { if ( c == '-' ) f = -1; c = getchar();}
        while ( c >= '0' && c <= '9' ) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
        x *= f;
    }
    
    void print( __int128 x )
    {
        if ( !x ) return ;
        if ( x < 0 ) putchar('-'), x = -x;
        print(x / 10);
        putchar(x % 10 + '0');
    }
    
    int main()
    {
        __int128 adu, kid, old, ticket = 120;
        read(adu); read(kid); read(old);
        print(adu * 120 + kid * 60 + old * 72);
        return 0;
    }
    
  • 1

信息

难度
1
分类
(无)
标签
递交数
96
已通过
34
通过率
35%
上传者