結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-03-16 22:50:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 508 bytes |
| コンパイル時間 | 2,713 ms |
| コンパイル使用メモリ | 195,244 KB |
| 最終ジャッジ日時 | 2025-01-09 07:24:37 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
#include<bits/stdc++.h>
using lint=long long;
int main(){
std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
lint n;std::cin>>n;
std::vector<lint>v;
for(;n;n/=10){
v.push_back(n%10);
}
lint a=0,b=0;
for(lint x:std::vector<lint>(v.rbegin(),v.rend())){
a*=10,b*=10;
if(x==7){
a+=6,b+=1;
}else{
a+=x;
}
}
std::cout<<a<<" "<<b<<'\n';
}
ngtkana