結果
問題 |
No.544 Delete 7
|
ユーザー |
|
提出日時 | 2018-06-29 10:44:27 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 432 ms |
コンパイル使用メモリ | 29,184 KB |
実行使用メモリ | 13,760 KB |
最終ジャッジ日時 | 2024-06-30 23:45:16 |
合計ジャッジ時間 | 3,457 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 2 TLE * 1 -- * 45 |
ソースコード
#include <stdio.h> int main(void) { int n,i,a,b,t=1; scanf("%d",&n); for(i=1;t;i++){ a=i; b=n-i; t=0; do{ if(a%10==7)t++; }while(a/=10); do{ if(b%10==7)t++; }while(b/=10); } printf("%d %d",i-1,n-i+1); return 0; }