toj_2804_2.cpp
来自「Tianjin University Online Judge 的80多道题目 」· C++ 代码 · 共 32 行
CPP
32 行
/*InputThe input will contain multiple test cases. Each test case contains a single line with a single integer n, the number of vertices of the polygon. (3 ≤ n ≤ 10^1000)The input will be terminated by the end of file.OutputFor each corresponding n, output a single line with the number of guards needed( n / 3 )Sample Input510099999999999999999999Sample Output13333333333333333333333Problem Setter: nuanranSource: TJU Programming Contest 2007 Preliminary*/#include<cstdio>#define max 1000int main(){ char num[ 10000 ][ 1000 ]; int i , j , k; scanfNum( num ,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?