結果
問題 | No.280 歯車の問題(1) |
ユーザー |
![]() |
提出日時 | 2015-09-18 22:36:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 608 ms |
コンパイル使用メモリ | 65,800 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 07:02:03 |
合計ジャッジ時間 | 2,700 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <string> #include <math.h> using namespace std; int main() { int n; cin >> n; vector<long long> gearList; for(int i = 0; i < n; i++) { long long gear; cin >> gear; gearList.push_back(gear); } cout << gearList[n-1] << '/' << gearList[0]; return 0; }