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