結果
問題 | No.249 N言っちゃダメゲーム (2) |
ユーザー |
|
提出日時 | 2015-11-03 09:06:52 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 642 ms |
コンパイル使用メモリ | 58,044 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-09-13 11:54:56 |
合計ジャッジ時間 | 1,038 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:29: warning: ‘n’ is used uninitialized [-Wuninitialized] 7 | #define REP(i,a,b) for(i=a;i<b;i++) | ^ main.cpp:8:18: note: in expansion of macro ‘REP’ 8 | #define rep(i,n) REP(i,0,n) | ^~~ main.cpp:21:3: note: in expansion of macro ‘rep’ 21 | rep(i,n) cin >> n >> k; | ^~~ main.cpp:19:7: note: ‘n’ declared here 19 | int n,k; | ^
ソースコード
#include <iostream>#include <algorithm>#include <string>#include <cstring>using namespace std;#define REP(i,a,b) for(i=a;i<b;i++)#define rep(i,n) REP(i,0,n)#define SQR(X) ((X)*(X))typedef long long ll;typedef unsigned long long ull;typedef long double lb;/* ここからが本編 */int main(void){int i,j;int n,k;int cnt = 0;rep(i,n) cin >> n >> k;cout << "500" << endl;return 0;}