結果
問題 |
No.987 N×Mマス計算(基本)
|
ユーザー |
![]() |
提出日時 | 2023-07-25 13:54:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 611 bytes |
コンパイル時間 | 1,232 ms |
コンパイル使用メモリ | 105,880 KB |
最終ジャッジ日時 | 2025-02-15 18:58:10 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 5 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> #include<iomanip> using namespace std; int main(){ int a, n, m; string op, delim = ""; cin >> n >> m >> op; vector<int> b(m); for (int i = 0; i < m; i++) cin >> b[i]; for (int i = 0; i < n; i++){ cin >> a; for (int j = 0; j < m; j++){ if (op == "+") cout << delim << a + b[j]; else cout << delim << a * b[j]; delim = " "; } cout << endl; delim = ""; } }