Submission #29866626
Source Code Expand
/*
他决定要“格”院子里的竹子。于是他搬了一条凳子坐在院子里,面对着竹子硬想了七天,结果因为头痛而宣告失败。
DONT NEVER AROUND . //
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
char s[200005];
int main(){
scanf("%s",s+1);
int len=strlen(s+1);
sort(s+1,s+1+len);
puts(s+1);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Minimize Ordering |
| User | FreshP_0325 |
| Language | C++ (GCC 9.2.1) |
| Score | 200 |
| Code Size | 379 Byte |
| Status | AC |
| Exec Time | 12 ms |
| Memory | 3736 KiB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:10:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%s",s+1);
| ~~~~~^~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 7 ms | 3432 KiB |
| 001.txt | AC | 12 ms | 3736 KiB |
| 002.txt | AC | 11 ms | 3604 KiB |
| 003.txt | AC | 12 ms | 3672 KiB |
| 004.txt | AC | 9 ms | 3472 KiB |
| 005.txt | AC | 8 ms | 3732 KiB |
| 006.txt | AC | 8 ms | 3704 KiB |
| 007.txt | AC | 7 ms | 3568 KiB |
| 008.txt | AC | 11 ms | 3724 KiB |
| 009.txt | AC | 7 ms | 3612 KiB |
| 010.txt | AC | 8 ms | 3684 KiB |
| 011.txt | AC | 6 ms | 3700 KiB |
| 012.txt | AC | 7 ms | 3688 KiB |
| example0.txt | AC | 2 ms | 3412 KiB |
| example1.txt | AC | 2 ms | 3532 KiB |