蓝桥杯 压缩矩阵

#include <iostream>
using namespace std;
int main() {
  long long n, t;
  cin >> n >> t;
  
  while (t--) {
    long long temp;
    cin >> temp;
    long long temp1=temp+1;
    long long x=temp1/3 + 1;  
    long long y=temp1/3+temp1%3;
    cout <<x<<" "<<y;
    if (t) 
      cout << endl;
    
  }
  return 0;
}

相关推荐

  1. 压缩矩阵

    2024-02-02 14:04:01       60 阅读
  2. -子矩阵

    2024-02-02 14:04:01       51 阅读
  3. 题目 1908: -矩阵相乘

    2024-02-02 14:04:01       36 阅读
  4. -1矩阵切割(c/c++)

    2024-02-02 14:04:01       51 阅读
  5. -单片机】基础模块:矩阵按键

    2024-02-02 14:04:01       49 阅读
  6. 算法基础(27) 矩阵运算

    2024-02-02 14:04:01       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-02 14:04:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-02 14:04:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-02-02 14:04:01       87 阅读
  4. Python语言-面向对象

    2024-02-02 14:04:01       96 阅读

热门阅读

  1. ES7.17由于IP变化导致的故障及恢复

    2024-02-02 14:04:01       61 阅读
  2. 详解Keras3.0 Layer API: Base RNN layer

    2024-02-02 14:04:01       54 阅读
  3. Mysql -- 数据迁移

    2024-02-02 14:04:01       51 阅读
  4. IntelliJ IDEA的常用插件收集

    2024-02-02 14:04:01       39 阅读
  5. Android 禁用字体随系统大小变化

    2024-02-02 14:04:01       60 阅读
  6. 【大模型】websocket连接频繁断掉的问题

    2024-02-02 14:04:01       101 阅读
  7. week03day04(正则表达式2)

    2024-02-02 14:04:01       46 阅读
  8. word使用技巧

    2024-02-02 14:04:01       47 阅读