CF 1B. Spreadsheets(自己代码以及大神代码)

博客作者分享了自己在解决ACM竞赛题目CF 1B 'Spreadsheets'时的经历,感叹自身代码能力不足。问题主要涉及不同进制之间的转换,特别是每满27进1的规则。作者提到了使用sscanf函数的技巧,如%*c来跳过无用字符串,并探讨了sscanf返回值的巧妙应用,同时提及了递归输出的方法。
摘要由CSDN通过智能技术生成

这个题自己写了写 发现自己代码能力真是太弱了。 题目很简单。 就是两种进制转换,转来转去。。


满27进1 留1  差不多就是这样。


#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <algorithm>
#include <fstream>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <vector>
#include <cmath>
#include <iomanip>
#include <cmath>
typedef long long LL;
typedef unsigned long long LLU;
const double PI=acos(-1.0);
using namespace std;
#define MAXN 100000+10
#define INF 1 << 30
int _pow(int a, int b){
    int t = 1;
    for(int i = 0; i < b; i++)
        t *= a;
    return t;
}
int main (){
    int n;
    scanf("%d",&n);
    while(n--){
        char s[MAXN];
        int r,c;
        scanf("%s",s);
        int flag = 0;
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值