摘要: 牛客练习赛128补题 A. Cidoai的幂次序列 思路 思维题 题面看着复杂,但只需输出 \(n-1\) 和 \(1\) 即可。 代码 #include <iostream> using namespace std; typedef long long ll; ll n, k; int main() { cin >> 阅读全文
posted @ 2024-09-16 23:01 Natural_TLP 阅读(58) 评论(0) 推荐(0)
摘要: 新生娱乐赛第一场题解 新生娱乐赛第一场 A 一道简单的语法题,直接输出"hello nowcoder"即可。 代码 #include <stdio.h> int main() { printf("hello nowcoder"); } B 也是一道语法题,考察分支结构。根据题意进行判断输出即可。 代码 #include 阅读全文
posted @ 2024-09-16 16:14 Natural_TLP 阅读(89) 评论(0) 推荐(0)
摘要: 牛客周赛 Round 60 A-困难数学题 思路 \(x\) \(xor\) \(x\) \(xor\) \(x\) \(xor\) \(x\),异或有结合律,\(x\) \(xor\) \(x\) \(= 0\),\(0\) \(xor\) \(0\) \(= 0\),所以本题直接输出0。 代码 #include <iost 阅读全文
posted @ 2024-09-16 01:29 Natural_TLP 阅读(57) 评论(0) 推荐(0)