結果

問題 No.3027 114514
ユーザー furafura
提出日時 2020-05-09 05:05:54
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 1,978 ms
コンパイル使用メモリ 196,560 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-17 23:09:52
合計ジャッジ時間 2,530 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
	int n; scanf("%d",&n);
	int ans;
	switch(n){
		case  1: ans=7; break;
		case  4: ans=4; break;
		case  5: ans=5; break;
		case  7: ans=1; break;
		case  8: ans=2; break;
		case 10: ans=0; break;
		default: ans=-1; break;
	}
	printf("%d\n",ans);
	return 0;
}
0