結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-10-17 12:15:30 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 101 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 29,100 KB |
| 最終ジャッジ日時 | 2026-02-23 22:36:28 |
|
ジャッジサーバー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(){for(gets(s);gets(s);puts(s))for(;s[1];*p=0)for(p=s;p[1];*p-=*p++/58*9)*p+=p[1]-48;}
| ^
/usr/bin/ld: /tmp/ccgKPRno.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[1]-48;}
testestest