PPXOASO - XÓA SỐ

 Cho 1 số nguyên N (tối đa 1000 chữ số). Hãy tìm số lớn nhất có được sau khi xóa 1 chữ số trong N.

 For an integer N (1000 digits). Look for the largest number by deleting one digit in N.

Input

  • Dòng đầu chứa T (T<100) là số bộ test.
  • The first line contains T (T <100) is the number of test cases.
  • T dòng sau mỗi dòng chứa 1 số nguyên dương N (N>9) không quá 1000 chữ số.
  • T line after each line contains an integer N (N> 9) of no more than 1000 words.

Output

  • T dòng, mỗi dòng chứa 1 kết quả tương ứng.
  • T lines, each containing a corresponding result.

Example

Input:
3
2013
4673
10

Output:
213
673
1

ID RESULT TIME
code...



Added by:Phạm Quang Chiến PROPTIT_D12CN2
Date:2013-07-23
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:chienptit.94

hide comments
2013-08-09 23:07:49 Mitch Schwartz
I think you chose "none" for "placement in main problem set". But if you want to make a problem visible, please at least solve several problems first, to get a better of idea of how things work and what constitutes a good problem. I really don't want to write 10 comments for each problem you try to publish.
2013-08-09 20:54:36 Phạm Quang Chiến PROPTIT_D12CN2
http://www.spoj.com/problems/PPDTANG1/
http://www.spoj.com/problems/PPUCLN1/
http://www.spoj.com/problems/PPDT1/
http://www.spoj.com/problems/PPBI2/
http://www.spoj.com/problems/PPSDN/
http://www.spoj.com/problems/PPDNT2/
http://www.spoj.com/problems/PPCSTN/
http://www.spoj.com/problems/PPPTNT/
2013-08-09 13:58:02 Mitch Schwartz
Are you asking why a particular problem is hidden (if so, which one?), or are you asking in general about why problems get hidden?
2013-08-09 12:55:11 Phạm Quang Chiến PROPTIT_D12CN2
@Mitch Schwartz why other problem is hiden??
2013-08-08 23:36:13 Mitch Schwartz
Ok, problem visible again.
2013-08-08 13:54:30 Phạm Quang Chiến PROPTIT_D12CN2
I have done
2013-08-07 12:12:48 Mitch Schwartz
See my previous comment.

Maybe this will help. It should look like this, you check the box and click the Start rejudge button.

http://www.spoj.com/content/cyclops:rejudge.png

Last edit: 2013-08-07 12:22:19
2013-08-07 07:45:50 Phạm Quang Chiến PROPTIT_D12CN2
i update all rejudge.please check again.
2013-08-05 12:04:32 Mitch Schwartz
My submissions 9760779 and 9767299 are identical, but one has NZEC and the other AC. That means you did not do the rejudge correctly.
2013-08-05 06:14:09 Phạm Quang Chiến PROPTIT_D12CN2
i added Rejudge.please check again!
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.