結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2017-07-15 01:18:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 1,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 6,500 ms |
コンパイル使用メモリ | 215,848 KB |
最終ジャッジ日時 | 2025-01-05 01:39:41 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <set> #include <iostream> #include <string> #include <regex> #define rep(i,n) for(size_t i{}; i<n; ++i) int main(){ size_t n,a,b; std::cin >> n; std::string text=std::to_string(n); std::regex re{"7"}; a = std::stoi( std::regex_replace(text, re, "6") ); b = n - a; std::cout << a << " " << b << "\n"; }