結果
| 問題 | No.280 歯車の問題(1) |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-09-18 22:43:25 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 50,616 KB |
| 実行使用メモリ | 58,588 KB |
| 最終ジャッジ日時 | 2026-04-02 15:01:54 |
| 合計ジャッジ時間 | 4,761 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 31 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:9:37: warning: 'n' is used uninitialized [-Wuninitialized]
9 | int n;long long z[101];scanf("%d",n);for(int i=0;i<n;i++)scanf("%lld",&z[i]);
| ~~~~~^~~~~~~~
main.cpp:9:13: note: 'n' was declared here
9 | int n;long long z[101];scanf("%d",n);for(int i=0;i<n;i++)scanf("%lld",&z[i]);
| ^
ソースコード
#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;
}
184