結果
問題 |
No.1335 1337
|
ユーザー |
|
提出日時 | 2021-01-15 22:56:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 527 bytes |
コンパイル時間 | 2,094 ms |
コンパイル使用メモリ | 200,536 KB |
最終ジャッジ日時 | 2025-01-17 20:17:17 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 14 |
コンパイルメッセージ
main.cpp: In function ‘int solve()’: main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type] 26 | } | ^
ソースコード
#include <bits/stdc++.h> #define fastio ios_base::sync_with_stdio(false),cin.tie(NULL); using namespace std; int solve(){ map<int, char> m; string s,a; string ans = ""; cin>>s>>a; for(int i = 0 ; i<10;i++){ m[i]=s[i]; } for(int i =0; i<a.size();i++){ if(isdigit(a.at(i))){ ans+=m[(int)a[i]-48]; } else{ ans+=a[i]; } } cout<<ans<<endl; } int main(){ fastio solve(); return 0; }