結果

問題 No.1423 Triangle of Multiples
ユーザー rogi52rogi52
提出日時 2022-09-27 06:21:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 1,665 ms
コンパイル使用メモリ 192,288 KB
最終ジャッジ日時 2025-02-07 17:05:08
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:2:35: warning: ‘T’ is used uninitialized [-Wuninitialized]
    2 | #define rep(i,n) for(int i = 0; i < (n); i++)
      |                                   ^
main.cpp:11:5: note: in expansion of macro ‘rep’
   11 |     rep(_,T) {
      |     ^~~
main.cpp:10:9: note: ‘T’ was declared here
   10 |     int T;
      |         ^

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    int T;
    rep(_,T) {
        ll a,b,c; cin >> a >> b >> c;
        ll x = a * b * c;
        cout << x << " " << x << " " << x << endl;
    }
}
0