結果

問題 No.280 歯車の問題(1)
ユーザー 184
提出日時 2015-09-18 22:45:17
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 252 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 33,792 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 07:04:38
合計ジャッジ時間 2,374 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:37: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         int n;long long z[101];scanf("%d",&n);for(int i=0;i<n;i++)scanf("%lld",&z[i]);
      |                                ~~~~~^~~~~~~~~
main.cpp:9:72: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         int n;long long z[101];scanf("%d",&n);for(int i=0;i<n;i++)scanf("%lld",&z[i]);
      |                                                                   ~~~~~^~~~~~~~~~~~~~

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

//namaega184

int main(){
	int n;long long z[101];scanf("%d",&n);for(int i=0;i<n;i++)scanf("%lld",&z[i]);
	long long ans;
	
	printf("%lld/%lld\n",z[n-1],z[0]);
	return 0;
}
0