結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー 158b
提出日時 2017-06-03 12:36:29
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
実行時間 -
コード長 422 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 326 ms
コンパイル使用メモリ 70,176 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-10 09:51:30
合計ジャッジ時間 2,032 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int sleep(int)':
main.cpp:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^

ソースコード

diff #
raw source code

#include <iostream>
#include <stdlib.h>
using namespace std;

int a[100000];
int ans[5] = {0,1,0,1,0};

int time(int h, int m, int s){
	return h*3600 + m*60 + s;
}

int sleep(int ms){
	for(int i=0; i<=100*ms; i++){
		for(int j=0; j<=27175; j++){
			a[j] = 0;
		}
	}
}
int main(){
	long long base = 1496415600 + time(12, 36, 30);
	long long test = time(0) - base;
	
	cout << ans[test] << endl;
	
	sleep(996);
	
	return 0;
}
0