首页 > 其他分享 >AT_abc227_c [ABC227C] ABC conjecture 翻译

AT_abc227_c [ABC227C] ABC conjecture 翻译

时间:2022-12-25 07:57:09浏览次数:57  
标签:conjecture ABC leq ABC227C 格式 abc227

题目传送门

题目描述

给出正整数 $ N $。

求 $ A\leq\ B\leq\ C $ 并且 $ ABC\leq\ N $ 的正整数对 $ (A,B,C) $ 的个数。

注意,在限制条件下,保证答案小于 $ 2^{63}$。

输入格式

输入按以下格式:

$ N $

输出格式

输出答案。

提示/说明

条件

  • $ 1\ \leq\ N\ \leq\ 10^{11} $
  • $ N $是整数

样例解释 \(1\):

满足条件的组有 \(5\) 组:\((1,1,1),(1,1,2),(1,1,3),(1,1,4),(1,2,2)\)。

标签:conjecture,ABC,leq,ABC227C,格式,abc227
From: https://www.cnblogs.com/zzyblog0619/p/17003647.html

相关文章

  • AT_abc279_a [ABC279A] wwwvvvvvv 题解
    题目传送门题目大意给定仅由v和w构成的字符串\(S\),输出\(S\)中有几处向下凸出的部分。解题思路v有一处向下凸出的部分,w有两处向下凸出的部分,所以如果\(S_i\)......
  • abc--283--E
    关键跟炮兵阵地那道题目很像,先确定上面哪一行的状态,然后在确定下面这一行的状态,采用dp就可以枚举所有的状态代码#include<bits/stdc++.h>usingnamespacestd;const......
  • abc 283 E Don't Isolate Elements
    abc283EDon'tIsolateElements题意:给出一个\(h*w\)的01矩阵,对于每一行,可以进行翻转操作。如果\(a_{i,j}\)的上下左右没有一个和它数值一样的话,这个点就被称......
  • Acwing 第 83 场周赛 ABC
    https://www.acwing.com/activity/content/competition/problem_list/2714/4785.奇偶题目大意:给定一个字符串,问我们去重后单词数是奇是偶?输入样例1:wjmzbmr输出样......
  • abc--275--C
    C-CountingSquares//会重复,所以要除4#include<bits/stdc++.h>usingnamespacestd;chars[10][10];boolcheck(intx,inty){returnx>=1&&y>=1&&x<=9&&y<......
  • [ABC264F] Monochromatic Path
    ProblemStatementWehaveagridwith$H$rowsand$W$columns.Eachsquareispaintedeitherwhiteorblack.Foreachintegerpair$(i,j)$suchthat$1\leq......
  • [ABC264Ex] Perfect Binary Tree
    ProblemStatementWehavearootedtreewith$N$verticesnumbered$1,2,\dots,N$.ThetreeisrootedatVertex$1$,andtheparentofVertex$i\ge2$isVerte......
  • [ABC264G] String Fair
    ProblemStatementInastringfair,theydeterminethebeautyofanon-emptystring$S$consistingoflowercaseEnglishletters.Thebeautyofstring$S$equal......
  • [ABC267G] Increasing K Times
    ProblemStatementYouaregivenanintegersequence$A=(A_1,\dots,A_N)$oflength$N$.Findthenumber,modulo$998244353$,ofpermutations$P=(P_1,\dot......
  • [ABC267F] Exactly K Steps
    ProblemStatementYouaregivenatreewith$N$vertices.Theverticesarenumbered$1,\dots,N$,andthe$i$-th($1\leqi\leqN-1$)edgeconnectsVertice......