結果
| 問題 |
No.9006 マルチバイト文字テスト(テスト用)
|
| ユーザー |
184
|
| 提出日時 | 2015-03-25 02:03:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 492 ms |
| コンパイル使用メモリ | 65,956 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 00:44:55 |
| 合計ジャッジ時間 | 859 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:16:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | char s[10000];scanf("%s",s);
| ~~~~~^~~~~~~~
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
#include <queue>
using namespace std;
//namaega184
#define UNICODE
int main(){
char s[10000];scanf("%s",s);
int len=strlen(s);
if(len-4<0){printf("BadString\n");return 0;}
for(int i=len-4;i>=4;i--){
printf("%s",s+i);
s[i]=0;
}
return 0;
}
184