結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | kotatsugame |
提出日時 | 2016-10-30 10:15:04 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 138 bytes |
コンパイル時間 | 1,524 ms |
コンパイル使用メモリ | 167,492 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-05-03 19:46:00 |
合計ジャッジ時間 | 2,322 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");} | ^~~~ main.cpp: In function 'int main()': main.cpp:2:50: warning: 'i' is used uninitialized [-Wuninitialized] 2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");} | ~^~ main.cpp:2:12: note: 'i' was declared here 2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");} | ^
ソースコード
#include<bits/stdc++.h> main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");}