結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2018-12-28 04:57:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 58,060 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 14:57:53 |
合計ジャッジ時間 | 2,224 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <iostream> #include <algorithm> #include <cstdio> #include <string> #define ll long long using namespace std; int dp[1000001]; int main(){ int n; cin>>n; int a=0,b=0; int c=n; int digit=1; while(c){ if(c%10==7){ a+=digit*4; } digit*=10; c/=10; } b=n-a; cout<<a<<" "<<b<<endl; return 0; }