結果
問題 | No.538 N.G.S. |
ユーザー |
|
提出日時 | 2017-06-30 22:55:45 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-04 20:55:55 |
合計ジャッジ時間 | 1,782 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 51 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%ld %ld %ld",&a,&b,&c); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>int f[11000000000001];long long count(long long a){if(a/10>0) return 10*count(a/10);else return 10;}int main(int argc, char const *argv[]){long a,b,c,d,e;scanf("%ld %ld %ld",&a,&b,&c);d=b-a;e=c-b;if(e==0){printf("%ld\n",b);}else{printf("%ld\n",e*e/d+c);}return 0;}