結果
問題 | No.280 歯車の問題(1) |
ユーザー |
![]() |
提出日時 | 2015-09-18 22:32:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 783 bytes |
コンパイル時間 | 1,366 ms |
コンパイル使用メモリ | 158,188 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 06:59:53 |
合計ジャッジ時間 | 3,755 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define FFOR(i,a,b) for(int i=(a);i<=(b);i++) #define REP(i,b) FOR(i,0,b) #define RREP(i,b) FFOR(i,1,b) #define PB push_back #define F first #define S second #define BE(c) c.begin(),c.end() using namespace std; typedef long long LL; typedef int ut; typedef long double ld; typedef pair<ut,ut> pr; typedef vector<pr> Vpr; typedef vector<ut> VI; typedef pair<ut,pr> ppr; typedef vector<ppr> Vppr; typedef priority_queue<pr,Vpr,greater<pr> > PQ; typedef priority_queue<ppr,Vppr,greater<ppr> > PprQ; const int SIZE=5+3*1e+5; const ut INF=1<<30; const ld eps=1e-6; const LL p=7+1e+9; LL nums[SIZE]; int main(){ string s; LL a,b,N; cin >> N; REP(i,N) cin >> nums[i]; cout << nums[N-1] << "/" << nums[0] << endl; }