結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2017-07-14 22:28:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 1,661 ms |
コンパイル使用メモリ | 161,912 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-30 06:12:28 |
合計ジャッジ時間 | 5,190 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 46 WA * 2 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define int long longsigned main(){int n;cin>>n;for(int a=n/2;a<n/2+1000000;a++){int b=n-a;if(abs(a)>1000000000||abs(b)>1000000000) continue;string s=to_string(abs(a)),t=to_string(abs(b));if(count(s.begin(),s.end(),'7')||count(t.begin(),t.end(),'7')) continue;cout<<a<<" "<<b<<endl;return 0;}return 0;}