結果
問題 |
No.544 Delete 7
|
ユーザー |
![]() |
提出日時 | 2017-07-14 22:31:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 952 ms |
コンパイル使用メモリ | 85,684 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-07 23:10:38 |
合計ジャッジ時間 | 6,948 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 15 WA * 33 |
ソースコード
#include <iostream> #include <random> #include <algorithm> using namespace std; int main(){ int n; cin >> n; random_device rnd; while(true){ int a = rnd(), b = n - a; string s = to_string(a), t = to_string(b); if(count(s.begin(), s.end(), '7') == 0 && count(t.begin(), t.end(), '7') == 0){ cout << a << ' ' << b << endl; return 0; } } }