結果
問題 |
No.400 鏡
|
ユーザー |
|
提出日時 | 2017-03-08 13:42:34 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 784 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 18:55:59 |
合計ジャッジ時間 | 923 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 4 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%s",s); | ^~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<string.h> int main(void){ int i; char s[20]; scanf("%s",s); for(i=0;i<strlen(s);i++){ if(s[i] == '>') printf("<"); else printf(">"); } return 0; }