結果
問題 |
No.2562 数字探しゲーム(緑以下コンver.)
|
ユーザー |
![]() |
提出日時 | 2023-12-02 14:52:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 493 bytes |
コンパイル時間 | 1,787 ms |
コンパイル使用メモリ | 194,956 KB |
最終ジャッジ日時 | 2025-02-18 04:01:31 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 9 RE * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); ++i) void solve() { int m;cin>>m; int n = 9; vector<int> a(n); rep(i, n) cin>>a[i]; string ans = ""; rep(i,n) { rep(j, a[i]) ans += to_string(i+1); } cout << stoll(ans) * m << endl; } int main() { int t;cin>>t; while(t--) solve(); return 0; }