結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
|
提出日時 | 2016-11-09 13:58:28 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 170 bytes |
コンパイル時間 | 320 ms |
コンパイル使用メモリ | 21,376 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 05:40:04 |
合計ジャッジ時間 | 900 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d%d%d",&x,&y,&r); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(){ int x,y,r; scanf("%d%d%d",&x,&y,&r); if(x<0)x*=-1; if(y<0)y*=-1; printf("%d",(int)(x+y+r*1.41421356+1)); return 0; }