結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-10-16 05:47:07 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 103 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 28,868 KB |
| 最終ジャッジ日時 | 2026-02-23 22:35:04 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 4 WA * 17 RE * 1 |
コンパイルメッセージ
main.c:1:8: warning: array ‘s’ assumed to have one element
1 | char*p,s[];main(){for(gets(s);gets(s);puts(s))for(;s[1];*p=0)for(p=s;p[1];*p-=*p/58*9,p++)*p+=p[1]-48;}
| ^
/usr/bin/ld: /tmp/cc7vs6tn.o: in function `main':
main.c:(.text.startup+0x26): 警告: the `gets' function is dangerous and should not be used.
ソースコード
char*p,s[];main(){for(gets(s);gets(s);puts(s))for(;s[1];*p=0)for(p=s;p[1];*p-=*p/58*9,p++)*p+=p[1]-48;}
testestest