結果
問題 |
No.1423 Triangle of Multiples
|
ユーザー |
|
提出日時 | 2021-03-12 23:14:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 781 bytes |
コンパイル時間 | 1,555 ms |
コンパイル使用メモリ | 168,332 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 13:50:37 |
合計ジャッジ時間 | 2,242 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 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); cout << 10*(a.at(0)) << " "; cout << 4*(a.at(0)) << " "; cout << 2*(a.at(2)) << "\n"; } }