結果
問題 | No.1423 Triangle of Multiples |
ユーザー |
|
提出日時 | 2021-03-12 23:13:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 758 bytes |
コンパイル時間 | 1,692 ms |
コンパイル使用メモリ | 169,428 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 13:49:52 |
合計ジャッジ時間 | 2,256 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define __hh__ ios_base::sync_with_stdio(false); cin.tie(0); #define ll long long #define all(x) (x).begin(),(x).end() #define vi vector<int> #define vs vector<string> #define vd vector<double> #define rep(i, n) for(int i=0; i<n; i++) #define repr(i, s, n) for(int i=s; i<n ;i++) const double PI=3.14159265358979323846; int findSumOfDigits(int n){ int digit = 0; while(n > 0){ digit += n % 10; n /= 10; } return digit; } bool isPal(string s) { string t = s; reverse(t.begin(), t.end()); return s == t; } int main() { __hh__ int t; cin >> t; rep(i, t){ vi a(3); rep(j, 3) cin >> a.at(j); rep(k, 2) cout << 3*(a.at(k)) << " "; cout << 2*(a.at(2)) << "\n"; } }