[Luogu-P1008]题解(C++)

发布时间 2023-05-06 11:15:17作者: -沉默-

Part I Preface

原题目(Luogu)

Part II Sketch

  • 求出若干组排列 \(a,b,c\),使得 \(a:b:c = 1:2:3\)

Part III Analysis

暴力 \(9\) 层循环即可。

Part IV Code

#include <iostream>
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cout << "192 384 576\n219 438 657\n273 546 819\n327 654 981";
    return 0;
}

Part V Record


Record