結果
問題 |
No.105 arcの六角ボルト
|
ユーザー |
![]() |
提出日時 | 2017-01-18 00:50:07 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 427 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 23,680 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 00:51:53 |
合計ジャッジ時間 | 745 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
コンパイルメッセージ
main.c: In function ‘run’: main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&t); | ^~~~~~~~~~~~~~ main.c:15:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%lf%lf",X+j,Y+j); | ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<stdlib.h> #include<math.h> void run(void){ int t; scanf("%d",&t); int i; for(i=0;i<t;i++){ double X[6]; double Y[6]; int j; for(j=0;j<6;j++){ scanf("%lf%lf",X+j,Y+j); } for(j=0;j<6;j++){ if(X[j]>=0.5 && Y[j]>=0) break; } double ans=asin(Y[j])*(180/M_PI); printf("%.7lf\n",ans); } return; } int main(void){ run(); return 0; }